Install bazelisk in docker_cpu_pip.sh
Since caller scripts use Bazelisk, the docker job is broken if we want to use a bazel that is no longer the default one. PiperOrigin-RevId: 351891433 Change-Id: I6caf0b5940934a3a90737f7fae288c42953a23f1
This commit is contained in:
parent
828f43c473
commit
754034e5de
@ -22,16 +22,16 @@ pip --version
|
|||||||
pip install portpicker
|
pip install portpicker
|
||||||
pip install *.whl
|
pip install *.whl
|
||||||
|
|
||||||
# Make bazel version the same as the env that invokes this script
|
# Install bazelisk
|
||||||
rm -rf ~/bazel
|
rm -rf $HOME/bin/bazel
|
||||||
mkdir ~/bazel
|
mkdir $HOME/bin/bazel
|
||||||
pushd ~/bazel
|
wget --no-verbose -O "$HOME/bin/bazel" \
|
||||||
wget https://github.com/bazelbuild/bazel/releases/download/"${BAZEL_VERSION}"/bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh
|
"https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64"
|
||||||
chmod +x bazel-*.sh
|
chmod u+x "$HOME/bin/bazel"
|
||||||
./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh --user
|
if [[ ! ":$PATH:" =~ :"$HOME"/bin/?: ]]; then
|
||||||
rm bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh
|
PATH="$HOME/bin:$PATH"
|
||||||
PATH="/bazel_pip/bin:$PATH"
|
fi
|
||||||
popd
|
which bazel
|
||||||
bazel version
|
bazel version
|
||||||
|
|
||||||
# Use default configuration
|
# Use default configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user