Skip to content

Commit 2131b28

Browse files
committed
chore: don't touch WORKSPACE when showing bazel version
In earlier Bazel versions it was necessary to have a `WORKSPACE` file for `bazel version` to succeed. This is not the case anymore: > Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a MODULE.bazel file).
1 parent 1374403 commit 2131b28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ RUN mkdir -p /afl && \
123123
# Pre-populate the Bazel installation for root
124124
# (note: this is only used for bash completion; the actual bazel version comes from bazelisk)
125125
COPY .bazelversion /tmp/bazel/
126-
RUN cd /tmp/bazel && touch WORKSPACE && bazel version
126+
RUN cd /tmp/bazel && bazel version
127127

128128
COPY ./ci/container/files/generate-bazel-completion.sh /tmp/
129129
RUN USE_BAZEL_VERSION=$(tail -1 /tmp/bazel/.bazelversion) /tmp/generate-bazel-completion.sh && \

ci/container/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c36d2160bd403f42a8c40afce7f218a574584b508ff3a01164ef6a81446e2a16
1+
aa4465680d4f91d55daf796721518ec5721781f67dd0021f1d902793740acb62

0 commit comments

Comments
 (0)