From 9867d5166ac3b9e8fa7dde0c664b8edf61200ab9 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 22 Jan 2024 09:02:03 +0100 Subject: [PATCH] fix(golang): fix fetching package versions for packages containing subpath specifier --- lua/mason-core/installer/registry/providers/golang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/mason-core/installer/registry/providers/golang.lua b/lua/mason-core/installer/registry/providers/golang.lua index 40327bb2d..896d9bf99 100644 --- a/lua/mason-core/installer/registry/providers/golang.lua +++ b/lua/mason-core/installer/registry/providers/golang.lua @@ -44,7 +44,7 @@ end ---@async ---@param purl Purl function M.get_versions(purl) - return providers.golang.get_all_versions(get_package_name(purl)) + return providers.golang.get_all_versions(("%s/%s"):format(purl.namespace, purl.name)) end return M