From 4da89f3ab04783da990f9bd40aaa36c22e59375b Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 2 May 2025 03:52:10 +0200 Subject: 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. --- tests/helpers/lua/dummy-registry/dummy2.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/helpers/lua/dummy-registry/dummy2.lua (limited to 'tests/helpers/lua/dummy-registry/dummy2.lua') 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, + }, +} -- cgit v1.2.3-70-g09d2