From f04748dc57d5b880181da2d7eae75004a958d55b Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 11 Nov 2024 13:00:37 -0800 Subject: [PATCH] Update some installs for newer version of release-gitter --- install-helpers.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/install-helpers.py b/install-helpers.py index f6ef14c..9910d54 100755 --- a/install-helpers.py +++ b/install-helpers.py @@ -149,10 +149,14 @@ def install_linters(langs: set[Language]): shellcheck=[ "--git-url", "https://github.com/koalaman/shellcheck", - "--extract-files", "shellcheck-{version}/shellcheck", - "--exec", "mv /tmp/shellcheck-{version}/shellcheck ~/bin/ && chmod +x ~/bin/shellcheck", + "--extract-files", + "shellcheck-{version}/shellcheck", + "--exec", + os.path.expanduser( + "mv shellcheck-{version}/shellcheck ~/bin/ && chmod +x ~/bin/shellcheck" + ), + "--use-temp-dir", "shellcheck-{version}.{system}.{arch}.tar.xz", - "/tmp/", ] ) @@ -175,13 +179,14 @@ def install_linters(langs: set[Language]): "release-gitter", "--git-url", "https://github.com/golangci/golangci-lint", - "--extract-all", + "--extract-files", + "golangci-lint-{version}-{system}-{arch}/golangci-lint", "--exec", os.path.expanduser( - "mv /tmp/$(echo {}|sed s/\\.tar\\.gz$//)/golangci-lint ~/bin/" + "mv golangci-lint-{version}-{system}-{arch}/golangci-lint ~/bin/ && chmod +x ~/bin/golangci-lint" ), + "--use-temp-dir", "golangci-lint-{version}-{system}-{arch}.tar.gz", - "/tmp/", ) if Language.LUA in langs: if not maybe_run("lua", "-e", "require('lfs')"):