aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(package): emit registry event on abnormal failures (#1061)William Boman2023-03-051-0/+11
| | | Also display a more helpful error message in the UI, as well as terminating the handle if it's not yet terminated.
* refactor(package): lazy-require modules (#1060)William Boman2023-03-051-12/+6
| | | | The mason-core.package module is loaded whenever there's anything interfacing with Mason packages (i.e. pretty often). Some of the modules imported at the top-level is used pretty infrequently, so we lazily require these instead.
* feat: add semver module (#1058)William Boman2023-03-053-0/+224
| | | | | | | | | | This will be used to compare semver versions, for example: ```lua local v1 = try(semver.parse("1.0.0")) local v2 = try(semver.parse("v2.0.0")) local _ = v1 < v2 -- true ```
* chore(ci): bump selene and stylua versions (#1059)William Boman2023-03-052-2/+2
|
* refactor(powershell): remove .script and fix fast API error (#1057)William Boman2023-03-052-72/+16
| | | | Calling vim.fn.executable in the module scope has potential to error if the module is required outside of the main loop.
* refactor(expr): better handling of nil values (#1056)William Boman2023-03-052-24/+21
|
* feat(InstallContext): add strict_mode flag (#1055)William Boman2023-03-055-17/+68
| | | Also add some more ctx.fs methods.
* chore: autogenerate (#1051)williambotman[bot]2023-03-031-1/+1
|
* chore: autogenerate (#1044)williambotman[bot]2023-03-021-1/+1
|
* refactor: don't set MANPATH explicitly (#1042)William Boman2023-03-022-17/+0
| | | After reading through `manpath(1)` a bit more thoroughly, this should not be needed due to `PATH` already being set.
* feat: set $MASON and $MANPATH (#1041)William Boman2023-03-022-0/+27
|
* feat(pydocstyle): toml support (#1040)Gabriel B. Santos2023-02-281-1/+1
|
* chore: autogenerate (#1039)williambotman[bot]2023-02-281-1/+1
|
* chore: autogenerate (#1037)williambotman[bot]2023-02-271-1/+1
|
* chore: autogenerate (#1034)williambotman[bot]2023-02-261-1/+1
|
* refactor: simplify linker & receipt writing (#1033)William Boman2023-02-269-148/+173
|
* chore: autogenerate (#1028)williambotman[bot]2023-02-231-1/+1
|
* tests: add LuaRegistrySource spec (#1027)William Boman2023-02-234-2/+58
|
* chore: autogenerate (#1022)williambotman[bot]2023-02-222-1/+13
|
* refactor: load mason-registry.sources directly (#1021)William Boman2023-02-214-5/+3
| | | This further reduces the amount of modules loaded during setup.
* feat(registry): add yls-yara (#1018)terib0l2023-02-213-0/+13
|
* chore: autogenerate (#1019)williambotman[bot]2023-02-212-2528/+1
|
* feat: configurable registries (#1016)William Boman2023-02-20292-389/+490
|
* chore: autogenerate (#1015)williambotman[bot]2023-02-203-2/+23
|
* fix(fetch): use correct separator for Windows iwr headers (#1014)William Boman2023-02-201-2/+2
|
* feat(registry): add brighterscript-formatter (#1009)Cason Adams2023-02-193-1/+13
|
* feat(providers): add more endpoints (#1013)William Boman2023-02-195-10/+84
|
* chore: autogenerate (#1007)williambotman[bot]2023-02-181-1/+1
|
* feat(installer): add share links (#965)William Boman2023-02-1723-153/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(installer): add share links Adds the ability to symlink share files to ~/.local/share/nvim/mason/share (default location). This is currently not used by any packages but will be soon (e.g. linking .jar files to a canonical location on the fs). This also includes the following changes: - fix(windows): correctly unlink executables Prior to this change, executables on Windows would not be removed when uninstalling a package. - refactor(installer): use Result interfaces The motivation behind this is to move away from exceptions and pcalls to leverage the Result interface. This allows for better error messaging during installation, as well as improved composability of actions that may or may not fail. - refactor(bin): use absolute paths in exec wrapper scripts While relative paths are preferred and will end up returning in the future, they i) cannot be guaranteed for all packages, and ii) is somewhat complicated to produce due to lack of std APIs. Moving the entire Mason installation directory was never officially supported anyway. - feat(installer): add "force" flag When this flag is true, any existing executables or share files will be overridden if they exist (i.e. mangle another package installation). * refactor(result): always return Result objects in Result.try The rationale here used to be that exceptions in Result.try() blocks were treated truly as exceptions that should interrupt code execution per Lua's traditional error handling semantics. However, Lua code is somewhat prone to raise exceptions when you don't expect it to (especially when interacting with loosely documented external APIs). Combine this with the fact that code that invokes Result.try() blocks generally doesn't `pcall` and only relies on the Result API to handle errors, you end up with code that only gracefully handles one class of errors (the well-known ones). * test(terminator): sleep in tests to avoid race condition I've no idea why this doesn't pass in CI, works just fine locally.
* chore(workflows): change autogenerate commit message (#1004)William Boman2023-02-171-2/+2
|
* chore: update generated code (#1003)williambotman[bot]2023-02-173-2/+3
|
* fix(terraform-ls): use releases.hashicorp.com (#1002)William Boman2023-02-161-16/+28
| | | Closes #1001.
* chore: update generated code (#999)williambotman[bot]2023-02-161-1/+25
|
* refactor(vacuum): use github source (#998)William Boman2023-02-161-2/+29
| | | The npm package is just a Node.js script that downloads these.
* feat(registry): add vacuum (#996)Micah Halter2023-02-153-0/+18
|
* chore: fix some typosZhizhen He2023-02-152-2/+2
|
* chore: update generated code (#994)williambotman[bot]2023-02-153-2/+3
|
* fix(docker-compose-language-service): upstream added a binary (#990)Marc Deop2023-02-141-18/+1
|
* chore: update generated code (#991)williambotman[bot]2023-02-142-3/+46
|
* feat(registry): add ansible-lint (#989)Can Güvendiren2023-02-133-1/+17
|
* feat(registry): add docker-compose-language-service (#986)Marc Deop2023-02-135-3/+33
| | | Co-authored-by: William Boman <william@redwill.se>
* chore: update generated code (#988)williambotman[bot]2023-02-131-0/+21
|
* feat: add antlers-language-server (#985)William Boman2023-02-123-0/+17
|
* chore: update generated code (#984)williambotman[bot]2023-02-121-1/+1
|
* docs: remove bracket from packer install code (#982)alexatcomputer2023-02-111-1/+1
|
* refactor(api): %s,\v(api/)repo,\1github (#981)William Boman2023-02-113-11/+11
|
* chore: update generated code (#980)williambotman[bot]2023-02-112-3/+4
|
* feat(lua-language-server): update source repo (#975)T7272023-02-091-20/+24
| | | Co-authored-by: William Boman <william@redwill.se>
* chore: update generated code (#974)williambotman[bot]2023-02-082-1/+21
|
* feat(registry): add fennel-language-server (#971)Massolari2023-02-073-0/+19
|