Skip to content

Commit 4fd9f43

Browse files
committed
Fix broken CI script by pinning latest Bazel version to 8.x.
Also temporarily disables building on bazel-latest, which we need to undo (along with a few other things from this PR) when we add support for Bazel 9 (#582). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
1 parent ccaa13b commit 4fd9f43

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.5.1

.github/workflows/bazel-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
# We trust that things also work for versions in the middle.
2222
os: [ubuntu-22.04, ubuntu-latest]
2323
# See Bazelisk README for legal values.
24-
bazel_version: [7.x, latest]
24+
# TODO(#582): Add back "latest" once we support Bazel 9.
25+
bazel_version: [7.x, 8.x]
2526
# Don't abort other runs when one of them fails, to ease debugging.
2627
fail-fast: false
2728

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module(
22
name = "p4runtime",
3-
bazel_compatibility = [">=7.4.1"],
3+
# TODO(#582): Remove upper bound once we support Bazel 9.x.
4+
bazel_compatibility = [">=7.0.0", "<9.0.0"],
45
)
56

67
bazel_dep(name = "bazel_skylib", version = "1.7.1")

0 commit comments

Comments
 (0)