diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-07-22 14:15:00 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-22 14:17:52 -0700 |
commit | 70626b3da217373eb74420e2c3426cc9283265fa (patch) | |
tree | 5dcf093989cce13a5325b905d30b83058f5eb28d /.buildkite | |
parent | d5fb4623ea75571f9a04e5694c18f397ba204ad6 (diff) |
buildkite: move golang installation to VM boot
Rather than re-downloading and installing Go for each pipeline run, we should
just do it at boot.
PiperOrigin-RevId: 386320005
Diffstat (limited to '.buildkite')
-rw-r--r-- | .buildkite/hooks/pre-command | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 6f197436c..9eb6d38f4 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -11,14 +11,6 @@ install_pkgs make "linux-headers-$(uname -r)" linux-libc-dev \ graphviz jq curl binutils gnupg gnupg-agent gcc pkg-config \ apt-transport-https ca-certificates software-properties-common -# Install Go 1.16, as only 1.13 is available via apt. If it's installed via apt, -# remove it. -sudo apt-get autoremove -y golang-go -declare -r go_archive=go1.16.6.linux-amd64.tar.gz -wget -c "https://golang.org/dl/${go_archive}" -sudo tar -xzf "${go_archive}" -C /usr/local -sudo ln -s /usr/local/go/bin/go /usr/bin/go - # Setup for parallelization with PARTITION and TOTAL_PARTITIONS. export PARTITION=${BUILDKITE_PARALLEL_JOB:-0} PARTITION=$((${PARTITION}+1)) # 1-indexed, but PARALLEL_JOB is 0-indexed. |