aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers/lua/dummy-registry/dummy_package.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2025-02-19 14:46:52 +0100
committerWilliam Boman <william@redwill.se>2025-02-19 14:47:55 +0100
commita8f5e511c686b6e8eec7bc57caf4d9d710005bcf (patch)
treeabca0182302608d93d45bb140b0ef8fee2e738de /tests/helpers/lua/dummy-registry/dummy_package.lua
parentchore(main): release 1.32.0 (#479) (diff)
downloadmason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.gz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.bz2
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.lz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.xz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.zst
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.zip
feat!: update usage of deprecated mason.nvim APIs
Diffstat (limited to 'tests/helpers/lua/dummy-registry/dummy_package.lua')
-rw-r--r--tests/helpers/lua/dummy-registry/dummy_package.lua15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/helpers/lua/dummy-registry/dummy_package.lua b/tests/helpers/lua/dummy-registry/dummy_package.lua
index b38d1cd..6eb7799 100644
--- a/tests/helpers/lua/dummy-registry/dummy_package.lua
+++ b/tests/helpers/lua/dummy-registry/dummy_package.lua
@@ -1,14 +1,15 @@
local Pkg = require "mason-core.package"
-return Pkg.new {
+return Pkg:new {
+ schema = "registry+v1",
name = "dummy",
- desc = [[This is a dummy package.]],
+ description = [[This is a dummy package.]],
+ licenses = {},
categories = { Pkg.Cat.LSP },
languages = { Pkg.Lang.DummyLang },
homepage = "https://example.com",
- ---@async
- ---@param ctx InstallContext
- install = function(ctx)
- ctx.receipt:with_primary_source { type = "dummy" }
- end,
+ source = {
+ id = "pkg:mason/dummy@1.0.0",
+ install = function() end,
+ },
}