aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-05 01:23:00 +0100
committerGitHub <noreply@github.com>2023-02-05 00:23:00 +0000
commit2692bfb3228b69f76cf240ca73c23eb5815a0b27 (patch)
tree58cc29ff386259dcfc9869d2fea6ce0425ddb9a8 /lua
parentfeat(windows): manually decompress zstd archives before untar (#963) (diff)
downloadmason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar.gz
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar.bz2
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar.lz
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar.xz
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.tar.zst
mason-2692bfb3228b69f76cf240ca73c23eb5815a0b27.zip
refactor(std): remove zstd from untar (#966)
This accidentally remained in #963.
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-core/managers/std/init.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/lua/mason-core/managers/std/init.lua b/lua/mason-core/managers/std/init.lua
index 0b48ea66..c9070a00 100644
--- a/lua/mason-core/managers/std/init.lua
+++ b/lua/mason-core/managers/std/init.lua
@@ -102,21 +102,11 @@ end
function M.untar(file, opts)
opts = opts or {}
local ctx = installer.context()
- local tarfile = string.gsub(file, ".zst$", "")
- if platform.is.win and file ~= tarfile then
- ctx.spawn.zstd {
- "-d",
- "-f",
- "-o",
- tarfile,
- file,
- }
- end
ctx.spawn.tar {
opts.strip_components and { "--strip-components", opts.strip_components } or vim.NIL,
"--no-same-owner",
"-xvf",
- tarfile,
+ file,
}
pcall(function()
ctx.fs:unlink(file)