<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mason/lua/mason-core/installer/linker.lua, branch v1.4.0</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/installer/linker.lua?h=v1.4.0</id>
<link rel='self' href='http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/installer/linker.lua?h=v1.4.0'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/'/>
<updated>2023-04-23T20:43:56Z</updated>
<entry>
<title>refactor(linker): copy_file instead of rename on Windows (#1254)</title>
<updated>2023-04-23T20:43:56Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-04-23T20:43:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=9a68a4bd997b72cee4132459e0fd99eea0cdc627'/>
<id>urn:sha1:9a68a4bd997b72cee4132459e0fd99eea0cdc627</id>
<content type='text'>
Renaming the file will move it from its original installation directory. While reaching into package installation
directories is unsupported and not recommended, it seems to be done pretty broadly. In order to avoid unnecessarily
breaking people's configs we copy the file instead, for now. (tip: use the stable locations inside $MASON/share
$MASON/opt $MASON/bin, if a package is missing a link please open an issue/PR).

This will be reversed back to use uv_fs_rename() in 1.x.x.</content>
</entry>
<entry>
<title>fix(linker): don't symlink on Windows (#1253)</title>
<updated>2023-04-23T20:25:51Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-04-23T20:25:51Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=b03c163f12684c21f43b98208ada78145763c6f1'/>
<id>urn:sha1:b03c163f12684c21f43b98208ada78145763c6f1</id>
<content type='text'>
1) FAT (FAT32, exFAT, etc.) file systems doesn't support symlinks.
2) You need administrator access in order to create symlinks.

This was working for me locally because I'm running a NTFS fs with
"Developer Mode" enabled in Windows 10, which bypasses administrator
requirement for mklink.

Instead we uv_fs_rename() links. This should effectively be the same,
but will require special handling down the road if/when for example
multiple package versions can be installed at the same time. When
unlinking a package the renamed files should me moved back into the
package installation directory, instead of simply being unlinked (i.e.
removed).

Closes #1251.</content>
</entry>
<entry>
<title>refactor: only schedule in a.scheduler() when in fast event (#1170)</title>
<updated>2023-04-02T22:33:48Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-04-02T22:33:48Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=0114336145771ff7c528debba52c5ff21bf6f7a2'/>
<id>urn:sha1:0114336145771ff7c528debba52c5ff21bf6f7a2</id>
<content type='text'>
Explicitly schedule via `a.wait(vim.schedule)` instead.</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>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>refactor: store link state in install context object (#419)</title>
<updated>2022-09-14T15:58:11Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-09-14T15:58:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=d39e46db31c9b2eee458ca59a814ebc4fe8a5bd5'/>
<id>urn:sha1:d39e46db31c9b2eee458ca59a814ebc4fe8a5bd5</id>
<content type='text'>
</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>
