We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25af30a commit 9537636Copy full SHA for 9537636
1 file changed
src/s-core-devcontainer/.devcontainer/s-core-local/install_matching_bazel_version.sh
@@ -1,7 +1,9 @@
1
#!/usr/bin/env bash
2
set -eo pipefail
3
4
-if [ -f .bazelversion ] && [ "$(cat .bazelversion)" != "$(bazel version | grep 'Build label:' | awk '{print $3}')" ]; then
+. /etc/profile.d/bazel.sh || true
5
+
6
+if [ -f .bazelversion ] && [ "$(cat .bazelversion)" != "$USE_BAZEL_VERSION" ]; then
7
# Pre-install the matching Bazel version, setup the bash command completion
8
USE_BAZEL_VERSION=$(cat .bazelversion)
9
bazel help completion > /tmp/bazel-complete.bash
0 commit comments