| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat(linker): use relative targets for symlinks (#1525) | William Boman | 2025-02-19 | 2 | -24/+11 |
| | | | | | Closes #1156. | ||||
| * | feat(path): add relative(from, to) | William Boman | 2025-02-19 | 1 | -1/+32 |
| | | |||||
| * | refactor(path): use InstallLocation to produce paths, remove static path methods | William Boman | 2025-02-19 | 5 | -57/+64 |
| | | |||||
| * | refactor(installer): move initializations to InstallContext constructor | William Boman | 2025-02-19 | 4 | -21/+23 |
| | | |||||
| * | refactor: add InstallLocation.global() | William Boman | 2025-02-19 | 2 | -1/+6 |
| | | |||||
| * | chore: hoist single file modules | William Boman | 2025-02-19 | 2 | -0/+0 |
| | | |||||
| * | chore: remove todo comment | William Boman | 2025-02-19 | 1 | -1/+0 |
| | | | | | Using sync is actually preferable here (and likely in many other places) to avoid async context & continuation overhead. | ||||
| * | chore(compilers): remove default environment from github build compiler | William Boman | 2025-02-19 | 1 | -7/+1 |
| | | |||||
| * | refactor!: refactor installer internals and add new Package class methods ↵ | William Boman | 2025-02-19 | 32 | -582/+666 |
| | | | | | | | | | | | | | | | | | | | | (#1523) This contains the following changes: 1) `Package:install()` now accepts a second, optional, callback argument which is called when installation finishes (successfully or not). 2) Adds a `Package:is_installing()` method. This contains the following breaking changes: 1) `Package:install()` will now error when called while an installation is already ongoing. Use the new `Package:is_installing()` method to check whether an installation is already running. This also refactors large portions of the tests by removing test globals, removing async_test, and adding the `mason-test` Lua module instead. Test helpers via globals are problematic to work with due to not being detected through tools like the Lua language server without additional configuration. This has been replaced with a Lua module `mason-test`. `async_test` has also been removed in favour of explicitly making use of the `mason-core.async` API. These changes stands for a significant portion of the diff. | ||||
| * | refactor(receipt): change receipt structure and remove old builder APIs (#1521) | William Boman | 2025-02-16 | 5 | -100/+49 |
| | | |||||
| * | fix(package): support older receipt structures (#1520) | William Boman | 2025-02-16 | 1 | -1/+5 |
| | | |||||
| * | fix(installer): schedule back to main loop before executing installer ↵ | William Boman | 2025-02-16 | 1 | -0/+1 |
| | | | | | functions (#1516) | ||||
| * | refactor!: consolidate Lua registry sources and the Package API (#1498) | William Boman | 2025-02-16 | 6 | -193/+99 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **This removes the following APIs:** - `Package:check_new_version()`. Instead use the new `Package:get_latest_version()`. **This has a breaking change in the following APIs:** - `Package:get_installed_version()` now no longer takes a callback but instead returns the installed version or `nil` if not installed. <details> <summary>To handle these breaking changes in plugins, leverage the `mason.version` module, for example:</summary> ```lua local mason_version = require("mason.version") local registry = require("mason-registry") local pkg = registry.get_package("rust-analyzer") if mason_version.MAJOR_VERSION < 2 then -- before pkg:check_new_version(function (success, new_version) -- … end) pkg:get_installed_version(function (success, installed_version) -- … end) else -- after local new_version = pkg:get_latest_version() local installed_version = pkg:get_installed_version() fi ``` </details> --- <details> <summary>This change also introduces breaking changes for Lua registry sources, by consolidating the package schema with the registry.</summary> The following is an example of a package defined in a Lua registry, following the new schema: ```lua local Pkg = require("mason-core.package") return Pkg.new { schema = "registry+v1", name = "ripgrep", description = "ripgrep recursively searches directories for a regex pattern while respecting your gitignore.", homepage = "https://github.com/BurntSushi/ripgrep", licenses = { Pkg.License.MIT }, languages = {}, categories = {}, source = { id = "pkg:mason/ripgrep@13.0.0", ---@param ctx InstallContext ---@param purl Purl install = function(ctx, purl) -- Arbitrary installation code. end, }, bin = { rg = "./bin/rg", }, } ``` </details> | ||||
| * | refactor!: remove old managers (#1497) | William Boman | 2025-02-16 | 20 | -1809/+15 |
| | | |||||
| * | feat(ui): add backdrop (#1759) | Hung Vu | 2025-02-15 | 1 | -18/+51 |
| | | | | | | | | | | | | | | | | Adds a backdrop for the Mason window. Can be disabled by setting the `ui.backdrop` option: ```lua require("mason").setup { ui = { backdrop = 100 } } ``` The backdrop is not displayed if `'termguicolors'` is not enabled or if Neovim is transparent. Co-authored-by: William Boman <william@redwill.se> | ||||
| * | fix(fs): fall back to `fs_stat` if entry type is not returned by ↵ | Nicolas Thierry | 2025-02-15 | 1 | -0/+7 |
| | | | | | | `fs_readdir` (#1783) Co-authored-by: William Boman <william@redwill.se> | ||||
| * | fix: avoid calling vim.fn in fast event (#1878) | William Boman | 2025-02-15 | 2 | -3/+5 |
| | | |||||
| * | fix(ui): reposition window if border is different than "none" (#1859) | Pedro Gabriel de Morais Ribeiro | 2025-02-15 | 1 | -5/+7 |
| | | | | Co-authored-by: William Boman <william@redwill.se> | ||||
| * | fix: replace deprecated calls to vim.validate (#1876) | Mark Sommers | 2025-02-15 | 1 | -20/+23 |
| | | | | Co-authored-by: William Boman <william@redwill.se> | ||||
| * | fix(pypi): prefer stock python3 if it satisfies version requirement (#1736) | Inhyuk Cho | 2024-07-09 | 1 | -2/+4 |
| | | |||||
| * | fix(pypi): allow access to system site packages by default (#1584) | Silico_Biomancer | 2024-07-07 | 1 | -1/+2 |
| | | | | Co-authored-by: William Boman <william@redwill.se> | ||||
| * | feat(pypi): improve resolving suitable python version (#1725) | William Boman | 2024-06-01 | 4 | -17/+140 |
| | | |||||
| * | fix(pypi): exclude python3.12 from candidate list (#1722) | William Boman | 2024-05-31 | 1 | -1/+0 |
| | | | | Support for python3.12 among pypi packages is pretty poor, this limits the upper bound to python3.11 instead. | ||||
| * | fix: avoid calling vim.fn.has inside fast event (#1705) | William Boman | 2024-05-12 | 1 | -3/+1 |
| | | | | | When this module is lazily required inside functional/init.lua we may be inside a fast event, causing the module to fail to load due to the top-level call to vim.fn.has. | ||||
| * | fix: fix usage of deprecated Neovim APIs (#1703) | William Boman | 2024-05-11 | 6 | -4/+29 |
| | | |||||
| * | fix(pypi): fix variable shadowing (#1610) | William Boman | 2024-01-29 | 1 | -1/+3 |
| | | |||||
| * | feat(pypi): attempt more python3 candidates (#1608) | William Boman | 2024-01-25 | 1 | -12/+59 |
| | | |||||
| * | fix(golang): fix fetching package versions for packages containing subpath ↵ | William Boman | 2024-01-22 | 1 | -1/+1 |
| | | | | | specifier (#1607) | ||||
| * | feat: don't use vim.g.python3_host_prog as a candidate for python (#1606) | William Boman | 2024-01-21 | 2 | -10/+2 |
| | | | | | This is inconsistent with how other system dependencies are resolved and is not documented anywhere. | ||||
| * | fix(ui): don't indent empty lines (#1597) | Will Lillis | 2024-01-21 | 1 | -9/+10 |
| | | |||||
| * | feat: add support for openvsx sources (#1589) | William Boman | 2024-01-06 | 13 | -143/+232 |
| | | |||||
| * | fix(cargo): don't attempt to fetch versions when version targets commit SHA ↵ | William Boman | 2023-12-29 | 1 | -0/+7 |
| | | | | | (#1585) | ||||
| * | fix(pypi): support MSYS2 virtual environments on Windows (#1547) | William Boman | 2023-11-08 | 1 | -17/+26 |
| | | |||||
| * | chore: decrease log level (#1467) | William Boman | 2023-08-25 | 1 | -1/+1 |
| | | |||||
| * | fix(std): use gtar if available (#1433) | 3uryd1ce | 2023-08-19 | 1 | -1/+4 |
| | | | | Closes #1415. | ||||
| * | feat(cargo): support fetching versions for git crates hosted on github (#1459) | William Boman | 2023-08-19 | 1 | -0/+14 |
| | | |||||
| * | chore(async): add Channel (#1456) | William Boman | 2023-08-17 | 1 | -2/+60 |
| | | |||||
| * | chore(logging): fix log string (#1444) | William Boman | 2023-08-09 | 1 | -1/+1 |
| | | |||||
| * | fix(installer): retain unmapped source fields (#1399) | William Boman | 2023-07-21 | 1 | -2/+1 |
| | | | | Fixes #1398. | ||||
| * | feat(ui): display package deprecation message (#1391) | William Boman | 2023-07-04 | 1 | -0/+5 |
| | | |||||
| * | fix(purl): percent-encoding is case insensitive (#1382) | William Boman | 2023-06-29 | 1 | -1/+7 |
| | | |||||
| * | fix(linker): ensure exec wrapper target is executable (#1380) | William Boman | 2023-06-28 | 2 | -19/+21 |
| | | | | Fixes #1368. | ||||
| * | feat(installer): write more installation output to stdout (#1376) | William Boman | 2023-06-28 | 12 | -5/+20 |
| | | | | This should give better insights into the installation progress. | ||||
| * | chore(ci): upgrade linter versions (#1377) | William Boman | 2023-06-28 | 1 | -10/+16 |
| | | |||||
| * | fix(installer): timeout schema download after 5s (#1374) | William Boman | 2023-06-28 | 1 | -1/+10 |
| | | | | Closes #1361. | ||||
| * | feat(fetch): add explicit default timeout to requests (#1364) | William Boman | 2023-06-22 | 1 | -2/+8 |
| | | |||||
| * | feat(fetch): include mason.nvim version in User-Agent (#1362) | William Boman | 2023-06-21 | 1 | -1/+2 |
| | | |||||
| * | refactor(installer): hoist version validation to the compiled installation ↵ | William Boman | 2023-06-17 | 9 | -54/+22 |
| | | | | | entrypoint (#1357) | ||||
| * | feat(command): improve completion for :MasonInstall (#1353) | William Boman | 2023-06-13 | 13 | -6/+101 |
| | | | | | Now also supports completing versions if completion is triggered when specifying a version, e.g. "rust-analyzer@". | ||||
| * | fix(functional): strip_prefix and strip_suffix should not use patterns (#1352) | William Boman | 2023-06-13 | 1 | -8/+14 |
| | | |||||
