Skip to content

Commit fbb0062

Browse files
committed
Specify version for bazelisk via USE_BAZEL_VERSION
bazelisk does not read the `.bazelversion` file when there is no WORKSPACE and first fetches the latest Bazel version, which causes a warning and later fetches the Bazel version specified in the `.bazelversion` file. See bazelbuild/bazelisk#523
1 parent e6925a5 commit fbb0062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rules_haskell_tests/tests/run-start-script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ rm -rf $workdir
1414
mkdir $workdir
1515
cd $workdir
1616
cp "$rules_haskell_dir/.bazelversion" .
17+
18+
# specify version for bazelisk via `USE_BAZEL_VERSION`, since it does not read the .bazelversion when there is no WORKSPACE file
19+
USE_BAZEL_VERSION=$( cat .bazelversion )
20+
export USE_BAZEL_VERSION
21+
1722
# arguments are passed on to the start script
1823
"$rules_haskell_dir/start" "$@"
1924

0 commit comments

Comments
 (0)