From 737e05c04c19e2a4f01a460f91ea24161540c772 Mon Sep 17 00:00:00 2001 From: Yoriyasu Yano <430092+yorinasub17@users.noreply.github.com> Date: Mon, 19 Apr 2021 09:01:22 -0500 Subject: [PATCH] Temporary workaround for broken build (#869) * Temporary workaround for broken build * Don't install go modules * Fix bashism --- .circleci/config.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4fcc228e0..064140b1a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ env: &env TERRAFORM_VERSION: 0.14.0 TERRAGRUNT_VERSION: v0.24.2 PACKER_VERSION: 1.6.6 - GOLANG_VERSION: 1.14 + GO_VERSION: 1.14 K8S_VERSION: v1.15.0 # Same as EKS MINIKUBE_VERSION: v1.9.2 HELM_VERSION: v3.1.1 @@ -41,8 +41,15 @@ install_gruntwork_utils: &install_gruntwork_utils --terraform-version ${TERRAFORM_VERSION} \ --terragrunt-version ${TERRAGRUNT_VERSION} \ --packer-version ${PACKER_VERSION} \ - --go-version ${GOLANG_VERSION} \ - --go-src-path ./ + --go-version NONE + + # Temporary fix for installing go - remove when we can update gruntwork-module-circleci-helpers to version with fix + echo "Installing Go version $version" + curl -O --silent --location --fail --show-error "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" + sudo rm -rf /usr/local/go + sudo tar -C /usr/local -xzf "go${GO_VERSION}.linux-amd64.tar.gz" + sudo ln -s /usr/local/go/bin/go /usr/bin/go + echo "The installed version of Go is now $(go version)" configure_environment_for_gcp: &configure_environment_for_gcp name: configure environment for gcp