<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mason/lua/mason-core/package/init.lua, branch v1.5.0</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/package/init.lua?h=v1.5.0</id>
<link rel='self' href='http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/package/init.lua?h=v1.5.0'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/'/>
<updated>2023-04-22T20:35:14Z</updated>
<entry>
<title>refactor(schemas): don't vendor schemas in mason.nvim (#1248)</title>
<updated>2023-04-22T20:35:14Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-04-22T20:35:14Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=54c9176cb82fe1c227978c6df2e2b29f985cbd02'/>
<id>urn:sha1:54c9176cb82fe1c227978c6df2e2b29f985cbd02</id>
<content type='text'>
Instead, schemas are now defined in the package registry and downloaded during installation.

See https://github.com/mason-org/mason-registry/pull/1319.</content>
</entry>
<entry>
<title>feat(registry): add ability to register package aliases (#1146)</title>
<updated>2023-04-05T19:42:17Z</updated>
<author>
<name>elky</name>
<email>kylelholzinger@gmail.com</email>
</author>
<published>2023-04-05T19:42:17Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=4453caf0faa37f9a4b85a73d2c09d5b5bca2d3aa'/>
<id>urn:sha1:4453caf0faa37f9a4b85a73d2c09d5b5bca2d3aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(package): schedule callback that can only run in main loop (#1172)</title>
<updated>2023-04-02T22:36:08Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-04-02T22:36:08Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=1256cec90d16326a124a529dc48bee38452eb321'/>
<id>urn:sha1:1256cec90d16326a124a529dc48bee38452eb321</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(sources): also set .desc property when updating spec (#1095)</title>
<updated>2023-03-13T23:59:56Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-13T23:59:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=63988d84311defc54a36d8befcb8df3646ac1cbc'/>
<id>urn:sha1:63988d84311defc54a36d8befcb8df3646ac1cbc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>style: enforce import order (#1092)</title>
<updated>2023-03-12T08:26:02Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-12T08:26:02Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=698cd0c4f10480991e665f31977650858d625af1'/>
<id>urn:sha1:698cd0c4f10480991e665f31977650858d625af1</id>
<content type='text'>
* chore(workflows): update dependencies

* style: enforce import order</content>
</entry>
<entry>
<title>feat: add github registry source capabilities (#1091)</title>
<updated>2023-03-12T07:21:15Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-12T07:21:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=a01d02ad7f680aec98a1e2ec35b04cedd307cfa8'/>
<id>urn:sha1:a01d02ad7f680aec98a1e2ec35b04cedd307cfa8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(package): emit registry event on abnormal failures (#1061)</title>
<updated>2023-03-05T02:21:54Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-05T02:21:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=35e33e4b6df6130a79fa91ee2dd7e1318be8dc88'/>
<id>urn:sha1:35e33e4b6df6130a79fa91ee2dd7e1318be8dc88</id>
<content type='text'>
Also display a more helpful error message in the UI, as well as terminating the handle if it's not yet terminated.</content>
</entry>
<entry>
<title>refactor(package): lazy-require modules (#1060)</title>
<updated>2023-03-05T02:21:03Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-05T02:21:03Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=08db751ef23471a030b09e6fc16b79702f3f2f1e'/>
<id>urn:sha1:08db751ef23471a030b09e6fc16b79702f3f2f1e</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>refactor: simplify linker &amp; receipt writing (#1033)</title>
<updated>2023-02-26T06:57:42Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-02-26T06:57:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=2e83e412d877a7e6daf04b2b6359521f6fb8c20e'/>
<id>urn:sha1:2e83e412d877a7e6daf04b2b6359521f6fb8c20e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(installer): add share links (#965)</title>
<updated>2023-02-17T19:08:45Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-02-17T19:08:45Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=f3d90e3b7580a2d1b47a1f9b905808e22a7fac87'/>
<id>urn:sha1:f3d90e3b7580a2d1b47a1f9b905808e22a7fac87</id>
<content type='text'>
* 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.</content>
</entry>
<entry>
<title>fix(package): emit package:uninstall:success registry event (#849)</title>
<updated>2023-01-04T08:47:06Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-01-04T08:47:06Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=dac1093be4f833da1696767c5badac9a3665c1df'/>
<id>urn:sha1:dac1093be4f833da1696767c5badac9a3665c1df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor(installer): introduce PackageInstallOpts class (#802)</title>
<updated>2022-12-26T15:35:10Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-12-26T15:35:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=6ee823248f5fc433018ee800c22eef642e375bd1'/>
<id>urn:sha1:6ee823248f5fc433018ee800c22eef642e375bd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(package): don't call vim API functions inside fast event (#730)</title>
<updated>2022-12-05T16:48:34Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-12-05T16:48:34Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=2381f507189e3e10a43c3932a3ec6c2847180abc'/>
<id>urn:sha1:2381f507189e3e10a43c3932a3ec6c2847180abc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: show warning message when exiting neovim with active installations (#725)</title>
<updated>2022-12-04T18:59:43Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-12-04T18:59:43Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=98b9091b47bef1795392df0dbcbd9b33f6969c4b'/>
<id>urn:sha1:98b9091b47bef1795392df0dbcbd9b33f6969c4b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(api/command): add --debug flag to :MasonInstall (#576)</title>
<updated>2022-10-19T12:41:42Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-10-19T12:41:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=38c3c7f68c0cd442f4faf46569d83c5b8a610c97'/>
<id>urn:sha1:38c3c7f68c0cd442f4faf46569d83c5b8a610c97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: bump stylua to 0.14.3 (#395)</title>
<updated>2022-09-08T13:19:11Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-09-08T13:19:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=247ca843f02c279e26c903c8744069ed14db00d3'/>
<id>urn:sha1:247ca843f02c279e26c903c8744069ed14db00d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: introduce selene, harden type defs, and use proper EmmyLua syntax (#296)</title>
<updated>2022-08-15T19:03:06Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-08-15T19:03:06Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=3c62386a396ae0c1cd7adbaacc379eb4af072a65'/>
<id>urn:sha1:3c62386a396ae0c1cd7adbaacc379eb4af072a65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: change emmylua annotation syntax from @ to : for comments (#73)</title>
<updated>2022-07-14T15:27:12Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-14T15:27:12Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=63de62cd0b0b53c5946d67ee2a3c2dac16379707'/>
<id>urn:sha1:63de62cd0b0b53c5946d67ee2a3c2dac16379707</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: add some mason-core.package tests (#69)</title>
<updated>2022-07-13T15:19:08Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-13T15:19:08Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=0c6dd949d395d1543c8813f028ae25b48947e50d'/>
<id>urn:sha1:0c6dd949d395d1543c8813f028ae25b48947e50d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(api): run :MasonInstall in blocking fashion if no UIs are attached (#52)</title>
<updated>2022-07-11T15:08:05Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-11T15:08:05Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=fe8dee1833bcb084ae4ff05797c9b89fe65ff046'/>
<id>urn:sha1:fe8dee1833bcb084ae4ff05797c9b89fe65ff046</id>
<content type='text'>
Also make sure to exit neovim with an error exit code should one or more
installations fail.</content>
</entry>
<entry>
<title>refactor: add mason-schemas and mason-core modules (#29)</title>
<updated>2022-07-08T16:34:38Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-08T16:34:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=976aa4fbee8a070f362cab6f6ec84e9251a90cf9'/>
<id>urn:sha1:976aa4fbee8a070f362cab6f6ec84e9251a90cf9</id>
<content type='text'>
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig

* refactor: add mason-core module</content>
</entry>
</feed>
