Moved the terraform installing

This commit is contained in:
Marcin Woźniak 2023-06-20 21:25:15 +02:00
parent bb7aa523a6
commit c1afe43ec1
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -64,13 +64,13 @@ function install_lazy() {
function install_terraform() { function install_terraform() {
# Install terraform and terraform-ls # Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform@latest
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
if [[ "$(uname)" == "Darwin" ]]; then if [[ "$(uname)" == "Darwin" ]]; then
brew install tflint -q brew install tflint -q
brew install tfenv -q brew install tfenv -q
TFENV_ARCH=amd64 tfenv install latest TFENV_ARCH=amd64 tfenv install latest
else else
GO111MODULE=on go install github.com/hashicorp/terraform@latest
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi fi
} }