diff options
| author | William Boman <william@redwill.se> | 2025-05-02 03:52:10 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-05-02 03:57:07 +0200 |
| commit | 4da89f3ab04783da990f9bd40aaa36c22e59375b (patch) | |
| tree | bb672a1bd796a6adf3d04473cb66a3e90be00707 /tests/helpers/lua/dummy-registry/dummy2.lua | |
| parent | feat(ui): display purl information (diff) | |
| download | mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.gz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.bz2 mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.lz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.xz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.zst mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.zip | |
refactor(registry): change lua registries to not instantiate Package themselves
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.
Diffstat (limited to 'tests/helpers/lua/dummy-registry/dummy2.lua')
| -rw-r--r-- | tests/helpers/lua/dummy-registry/dummy2.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/helpers/lua/dummy-registry/dummy2.lua b/tests/helpers/lua/dummy-registry/dummy2.lua new file mode 100644 index 00000000..8dc26c9f --- /dev/null +++ b/tests/helpers/lua/dummy-registry/dummy2.lua @@ -0,0 +1,14 @@ +return { + name = "dummy2", + description = [[This is a dummy2 package.]], + homepage = "https://example.com", + licenses = { "MIT" }, + languages = { "Dummy2Lang" }, + categories = { "LSP" }, + source = { + id = "pkg:mason/dummy2@1.0.0", + ---@async + ---@param ctx InstallContext + install = function(ctx) end, + }, +} |
