aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/mason-core/installer/compiler/compilers/github/build.lua8
-rw-r--r--tests/mason-core/installer/registry/compilers/github/build_spec.lua4
-rw-r--r--tests/mason-core/installer/registry/compilers/github/release_spec.lua4
3 files changed, 5 insertions, 11 deletions
diff --git a/lua/mason-core/installer/compiler/compilers/github/build.lua b/lua/mason-core/installer/compiler/compilers/github/build.lua
index 22f3e3cc..77c3627f 100644
--- a/lua/mason-core/installer/compiler/compilers/github/build.lua
+++ b/lua/mason-core/installer/compiler/compilers/github/build.lua
@@ -19,13 +19,7 @@ function M.parse(source, purl, opts)
local expr_ctx = { version = purl.version }
- -- TODO: In a few releases of the core registry, r-languageserver reads $MASON_VERSION directly. Remove this
- -- some time in the future.
- local default_env = {
- MASON_VERSION = purl.version,
- }
- build_instruction.env =
- vim.tbl_extend("force", default_env, try(expr.tbl_interpolate(build_instruction.env or {}, expr_ctx)))
+ build_instruction.env = try(expr.tbl_interpolate(build_instruction.env or {}, expr_ctx))
---@class ParsedGitHubBuildSource : ParsedPackageSource
local parsed_source = {
diff --git a/tests/mason-core/installer/registry/compilers/github/build_spec.lua b/tests/mason-core/installer/registry/compilers/github/build_spec.lua
index 0adc00fe..82271fee 100644
--- a/tests/mason-core/installer/registry/compilers/github/build_spec.lua
+++ b/tests/mason-core/installer/registry/compilers/github/build_spec.lua
@@ -17,7 +17,7 @@ describe("github provider :: build :: parsing", function()
Result.success {
build = {
run = [[npm install && npm run compile]],
- env = { MASON_VERSION = "2023-03-09" },
+ env = {},
},
repo = "https://github.com/namespace/name.git",
rev = "2023-03-09",
@@ -36,7 +36,7 @@ describe("github provider :: build :: parsing", function()
build = {
target = "win_x64",
run = [[npm install]],
- env = { MASON_VERSION = "2023-03-09" },
+ env = {},
},
repo = "https://github.com/namespace/name.git",
rev = "2023-03-09",
diff --git a/tests/mason-core/installer/registry/compilers/github/release_spec.lua b/tests/mason-core/installer/registry/compilers/github/release_spec.lua
index 3cfbabc5..7ea9f42e 100644
--- a/tests/mason-core/installer/registry/compilers/github/release_spec.lua
+++ b/tests/mason-core/installer/registry/compilers/github/release_spec.lua
@@ -158,7 +158,7 @@ describe("github provider :: release :: parsing", function()
Result.success {
build = {
run = [[npm install && npm run compile]],
- env = { MASON_VERSION = "2023-03-09" },
+ env = {},
},
repo = "https://github.com/namespace/name.git",
rev = "2023-03-09",
@@ -177,7 +177,7 @@ describe("github provider :: release :: parsing", function()
build = {
target = "win_x64",
run = [[npm install]],
- env = { MASON_VERSION = "2023-03-09" },
+ env = {},
},
repo = "https://github.com/namespace/name.git",
rev = "2023-03-09",