From 8e921c2b68571e978db5d4d3fef9c9a7f8755473 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 14 May 2026 17:21:42 +0200 Subject: feat: add the infrastructure to support "system" packages (#2085) This enables `mason.nvim` to start managing certain packages that: 1) are not suitable for the core registry 2) should not surface in existing APIs and UIs --- lua/mason-registry/sources/github.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/mason-registry/sources/github.lua') diff --git a/lua/mason-registry/sources/github.lua b/lua/mason-registry/sources/github.lua index 2b177bdd..7b650ae8 100644 --- a/lua/mason-registry/sources/github.lua +++ b/lua/mason-registry/sources/github.lua @@ -29,7 +29,8 @@ local GitHubRegistrySource = {} GitHubRegistrySource.__index = GitHubRegistrySource ---@param spec GitHubRegistrySourceSpec -function GitHubRegistrySource:new(spec) +---@param system boolean +function GitHubRegistrySource:new(spec, system) ---@type GitHubRegistrySource local instance = {} setmetatable(instance, GitHubRegistrySource) @@ -38,6 +39,7 @@ function GitHubRegistrySource:new(spec) instance.spec = spec instance.repo = ("%s/%s"):format(spec.namespace, spec.name) instance.root_dir = root_dir + instance.system = system instance.data_file = path.concat { root_dir, "registry.json" } instance.info_file = path.concat { root_dir, "info.json" } return instance -- cgit v1.3.1