mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:07:35 +00:00
Fix arm linux language server installs
Some machines return aarch64 which needs to map to arm64 for some packages
This commit is contained in:
parent
8dd18623e4
commit
d4c573263c
@ -149,6 +149,7 @@ function install_linters() {
|
|||||||
hadolint_arm64=x86_64
|
hadolint_arm64=x86_64
|
||||||
fi
|
fi
|
||||||
maybe_run release-gitter --git-url "https://github.com/hadolint/hadolint" \
|
maybe_run release-gitter --git-url "https://github.com/hadolint/hadolint" \
|
||||||
|
--map-arch aarch64=$hadolint_arm64 \
|
||||||
--map-arch arm64=$hadolint_arm64 \
|
--map-arch arm64=$hadolint_arm64 \
|
||||||
--exec "'mv ~/bin/{} ~/bin/hadolint && chmod +x ~/bin/hadolint'" \
|
--exec "'mv ~/bin/{} ~/bin/hadolint && chmod +x ~/bin/hadolint'" \
|
||||||
"hadolint-{system}-{arch}" ~/bin
|
"hadolint-{system}-{arch}" ~/bin
|
||||||
@ -158,11 +159,13 @@ function install_linters() {
|
|||||||
if want_lang terraform ;then
|
if want_lang terraform ;then
|
||||||
maybe_run release-gitter --git-url "https://github.com/aquasecurity/tfsec" \
|
maybe_run release-gitter --git-url "https://github.com/aquasecurity/tfsec" \
|
||||||
--map-arch x86_64=amd64 \
|
--map-arch x86_64=amd64 \
|
||||||
|
--map-arch aarch64=arm64 \
|
||||||
--map-system Linux=linux --map-system Darwin=darwin \
|
--map-system Linux=linux --map-system Darwin=darwin \
|
||||||
--exec "'mv ~/bin/{} ~/bin/tfsec && chmod +x ~/bin/tfsec'" \
|
--exec "'mv ~/bin/{} ~/bin/tfsec && chmod +x ~/bin/tfsec'" \
|
||||||
"tfsec-{system}-{arch}" ~/bin
|
"tfsec-{system}-{arch}" ~/bin
|
||||||
maybe_run release-gitter --git-url "https://github.com/terraform-linters/tflint" \
|
maybe_run release-gitter --git-url "https://github.com/terraform-linters/tflint" \
|
||||||
--map-arch x86_64=amd64 \
|
--map-arch x86_64=amd64 \
|
||||||
|
--map-arch aarch64=arm64 \
|
||||||
--map-system Linux=linux --map-system Darwin=darwin \
|
--map-system Linux=linux --map-system Darwin=darwin \
|
||||||
--extract-all --exec "'chmod +x ~/bin/tflint'" \
|
--extract-all --exec "'chmod +x ~/bin/tflint'" \
|
||||||
"tflint_{system}_{arch}.zip" ~/bin
|
"tflint_{system}_{arch}.zip" ~/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user