Skip to content

Commit

Permalink
Bump minimal Bazel version to 5.2
Browse files Browse the repository at this point in the history
We require this version now in order to avoid this error:
```
external/rules_cc/cc/private/rules_impl/compiler_flag.bzl\", line 17, column 76, in <toplevel>
  load(\"@bazel_tools//tools/cpp:toolchain_utils.bzl\", \"find_cpp_toolchain\", \"use_cpp_toolchain\")
Error: file '@bazel_tools//tools/cpp:toolchain_utils.bzl' does not contain symbol 'use_cpp_toolchain' (did you mean 'find_cpp_toolchain'?)
```
  • Loading branch information
avdv committed Aug 22, 2023
1 parent 6a1d3a7 commit ff2d94f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion haskell/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# because every bazel version tested requires a lot of space on CI
# See https://github.com/tweag/rules_haskell/pull/1781#issuecomment-1187640454
SUPPORTED_BAZEL_VERSIONS = [
"5.0.0",
"5.2.0",
"5.4.1".
"6.2.0",
]

Expand Down
2 changes: 1 addition & 1 deletion rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ use_repo(
"toolchains_libraries",
"zlib.dev",
"bazel_5",
"build_bazel_bazel_5_0_0",
"build_bazel_bazel_5_2_0",
"build_bazel_bazel_5_4_1",
"build_bazel_bazel_6_2_0",
"bazel_6",
)
Expand Down
2 changes: 1 addition & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -eu
GHC_VERSION=${GHC_VERSION:="9.2.5"}

readonly MIN_BAZEL_MAJOR=5
readonly MIN_BAZEL_MINOR=0
readonly MIN_BAZEL_MINOR=2

readonly MAX_BAZEL_MAJOR=6
readonly MAX_BAZEL_MINOR=2
Expand Down

0 comments on commit ff2d94f

Please sign in to comment.