<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mason/tests/helpers/lua, branch feat/lockfile</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/mason/atom/tests/helpers/lua?h=feat%2Flockfile</id>
<link rel='self' href='http://git.sudomsg.com/mirror/mason/atom/tests/helpers/lua?h=feat%2Flockfile'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/'/>
<updated>2025-05-02T01:57:07Z</updated>
<entry>
<title>refactor(registry): change lua registries to not instantiate Package themselves</title>
<updated>2025-05-02T01:57:07Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2025-05-02T01:52:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=4da89f3ab04783da990f9bd40aaa36c22e59375b'/>
<id>urn:sha1:4da89f3ab04783da990f9bd40aaa36c22e59375b</id>
<content type='text'>
Instead of having Lua registries instantiate package instances
themselves we now do it in the installer of Lua registry sources.

This aligns the behaviour of the Lua registry protocol with the other
registry protocols.
</content>
</entry>
<entry>
<title>refactor: standardize constructors and improve inheritance construction</title>
<updated>2025-02-19T08:23:19Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-10-13T19:14:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=ae208dc380808ff1aef39929a0e897e881571d43'/>
<id>urn:sha1:ae208dc380808ff1aef39929a0e897e881571d43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor!: refactor installer internals and add new Package class methods (#1523)</title>
<updated>2025-02-19T08:22:40Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-10-11T14:31:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=047ec18da56ad8f331e5c6bc7417dc5a9a6e71cc'/>
<id>urn:sha1:047ec18da56ad8f331e5c6bc7417dc5a9a6e71cc</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>refactor!: consolidate Lua registry sources and the Package API (#1498)</title>
<updated>2025-02-16T08:48:59Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-09-10T22:37:05Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=d0119c18adff184c5c75f7ec59b6f12b301d268d'/>
<id>urn:sha1:d0119c18adff184c5c75f7ec59b6f12b301d268d</id>
<content type='text'>
**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.

&lt;details&gt;
&lt;summary&gt;To handle these breaking changes in plugins, leverage the `mason.version` module, for example:&lt;/summary&gt;

```lua
local mason_version = require("mason.version")
local registry = require("mason-registry")
local pkg = registry.get_package("rust-analyzer")

if mason_version.MAJOR_VERSION &lt; 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
```

&lt;/details&gt;

---

&lt;details&gt;
&lt;summary&gt;This change also introduces breaking changes for Lua registry sources, by consolidating the package schema with the
registry.&lt;/summary&gt;

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",
    },
}
```

&lt;/details&gt;
</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: fix writing pyvenv module wrapper (#1073)</title>
<updated>2023-03-06T16:53:57Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-06T16:53:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=3ee3174e30e33c9d58fa07b0a73a6e180474b59c'/>
<id>urn:sha1:3ee3174e30e33c9d58fa07b0a73a6e180474b59c</id>
<content type='text'>
Closes #1071.</content>
</entry>
<entry>
<title>feat(InstallContext): add strict_mode flag (#1055)</title>
<updated>2023-03-05T01:33:57Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-03-05T01:33:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991'/>
<id>urn:sha1:c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991</id>
<content type='text'>
Also add some more ctx.fs methods.</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>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: 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>fix(api): fix the :MasonUninstall command (#66)</title>
<updated>2022-07-13T01:34:33Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-13T01:34:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=720016d4fa525770d13e0933b05c919a5939622c'/>
<id>urn:sha1:720016d4fa525770d13e0933b05c919a5939622c</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>
<entry>
<title>refactor: move packages to mason-registry (#27)</title>
<updated>2022-07-08T15:36:10Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-08T15:36:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=8cad2361dd63c67d95acf9f79321927b03843959'/>
<id>urn:sha1:8cad2361dd63c67d95acf9f79321927b03843959</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mason.nvim</title>
<updated>2022-07-06T22:39:59Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-07-06T17:41:43Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=5f634e0c37e723fc0c33e06b4fd5c2180178db40'/>
<id>urn:sha1:5f634e0c37e723fc0c33e06b4fd5c2180178db40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: further decouple module structure (#685)</title>
<updated>2022-05-11T14:10:57Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-05-11T14:10:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=5e3385d90668c792919c7e2791620a6c0d569538'/>
<id>urn:sha1:5e3385d90668c792919c7e2791620a6c0d569538</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: remove deprecated modules (#682)</title>
<updated>2022-05-10T10:20:22Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-05-10T10:20:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=f60f53d8c2d304e8e6d335215ea0b781f80599f0'/>
<id>urn:sha1:f60f53d8c2d304e8e6d335215ea0b781f80599f0</id>
<content type='text'>
- https://github.com/williamboman/nvim-lsp-installer/wiki/Async-infrastructure-changes-notice
- https://github.com/williamboman/nvim-lsp-installer/discussions/636</content>
</entry>
<entry>
<title>feat: allow excluding servers from automatic installation (#643)</title>
<updated>2022-04-30T13:44:37Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-04-30T13:44:37Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=cd4dac02a3bb5431979b0812a80dadf6ee088f5e'/>
<id>urn:sha1:cd4dac02a3bb5431979b0812a80dadf6ee088f5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>switch majority of installers to async implementation (#574)</title>
<updated>2022-04-05T22:25:50Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-04-05T22:25:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=999476c324b26223aaf409a84497215e18d74499'/>
<id>urn:sha1:999476c324b26223aaf409a84497215e18d74499</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add async managers (#536)</title>
<updated>2022-03-26T12:41:50Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2022-03-26T12:41:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=212d17a039da449043b67529c29851db37acc236'/>
<id>urn:sha1:212d17a039da449043b67529c29851db37acc236</id>
<content type='text'>
</content>
</entry>
</feed>
