mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Automated rollback of changelist 385029528
PiperOrigin-RevId: 385200993
This commit is contained in:
committed by
gVisor bot
parent
628d7d3a46
commit
5ad30cac2e
@@ -8,16 +8,9 @@ function install_pkgs() {
|
||||
done
|
||||
}
|
||||
install_pkgs make "linux-headers-$(uname -r)" linux-libc-dev \
|
||||
graphviz jq curl binutils gnupg gnupg-agent gcc \
|
||||
graphviz jq curl binutils gnupg gnupg-agent golang-go \
|
||||
apt-transport-https ca-certificates software-properties-common
|
||||
|
||||
# Install Go 1.16, as only 1.13 is available via apt.
|
||||
declare -r go_archive=go1.16.6.linux-amd64.tar.gz
|
||||
wget "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
|
||||
rm "${go_archive}"
|
||||
|
||||
# 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.
|
||||
|
||||
@@ -36,10 +36,9 @@ install_helper() {
|
||||
mkdir -p "${GOPATH}"/src/$(dirname "${PACKAGE}") && \
|
||||
git clone https://"${PACKAGE}" "${GOPATH}"/src/"${PACKAGE}"
|
||||
|
||||
# Checkout and build the repository. We use a pre-GO111MODULE containerd.
|
||||
# Checkout and build the repository.
|
||||
(cd "${GOPATH}"/src/"${PACKAGE}" && \
|
||||
git checkout "${TAG}" && \
|
||||
export GO111MODULE=off && \
|
||||
make && \
|
||||
make install)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user