aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/lua/dummy-registry/dummy2_package.lua19
-rw-r--r--tests/helpers/lua/dummy-registry/dummy_package.lua19
2 files changed, 22 insertions, 16 deletions
diff --git a/tests/helpers/lua/dummy-registry/dummy2_package.lua b/tests/helpers/lua/dummy-registry/dummy2_package.lua
index 424e47d7..793404ea 100644
--- a/tests/helpers/lua/dummy-registry/dummy2_package.lua
+++ b/tests/helpers/lua/dummy-registry/dummy2_package.lua
@@ -1,14 +1,17 @@
local Pkg = require "mason-core.package"
return Pkg.new {
+ schema = "registry+v1",
name = "dummy2",
- desc = [[This is a dummy2 package.]],
- categories = { Pkg.Cat.LSP },
- languages = { Pkg.Lang.Dummy2Lang },
+ description = [[This is a dummy2 package.]],
homepage = "https://example.com",
- ---@async
- ---@param ctx InstallContext
- install = function(ctx)
- ctx.receipt:with_primary_source { type = "dummy2" }
- end,
+ licenses = { Pkg.License.MIT },
+ languages = { Pkg.Lang.Dummy2Lang },
+ categories = { Pkg.Cat.LSP },
+ source = {
+ id = "pkg:mason/dummy2@1.0.0",
+ ---@async
+ ---@param ctx InstallContext
+ install = function(ctx) end,
+ },
}
diff --git a/tests/helpers/lua/dummy-registry/dummy_package.lua b/tests/helpers/lua/dummy-registry/dummy_package.lua
index b38d1cd8..52a709ad 100644
--- a/tests/helpers/lua/dummy-registry/dummy_package.lua
+++ b/tests/helpers/lua/dummy-registry/dummy_package.lua
@@ -1,14 +1,17 @@
local Pkg = require "mason-core.package"
return Pkg.new {
+ schema = "registry+v1",
name = "dummy",
- desc = [[This is a dummy package.]],
- categories = { Pkg.Cat.LSP },
- languages = { Pkg.Lang.DummyLang },
+ description = [[This is a dummy package.]],
homepage = "https://example.com",
- ---@async
- ---@param ctx InstallContext
- install = function(ctx)
- ctx.receipt:with_primary_source { type = "dummy" }
- end,
+ licenses = { Pkg.License.MIT },
+ languages = { Pkg.Lang.DummyLang },
+ categories = { Pkg.Cat.LSP },
+ source = {
+ id = "pkg:mason/dummy@1.0.0",
+ ---@async
+ ---@param ctx InstallContext
+ install = function(ctx) end,
+ },
}