Skip to content

Bump dependency versions, drop compatibility_level#1815

Merged
mbland merged 1 commit intobazel-contrib:masterfrom
mbland:version-bumps
Feb 27, 2026
Merged

Bump dependency versions, drop compatibility_level#1815
mbland merged 1 commit intobazel-contrib:masterfrom
mbland:version-bumps

Conversation

@mbland
Copy link
Copy Markdown
Collaborator

@mbland mbland commented Feb 27, 2026

Description

Removes compatibility_level from the module directive in MODULE.bazel. Bumps the following dependency versions:

Bazel modules:

  • bazel_features: 1.38.0 => 1.42.0
  • bazel_skylib: 1.8.2 => 1.9.0
  • protobuf: v33.4 => v33.5
  • rules_cc: 0.2.14 => 0.2.17
  • rules_go: 0.59.0 => 0.60.0
  • rules_java: 9.3.0 => 9.6.1
  • rules_python: 1.7.0 => 1.8.5

Golang:

  • Golang: 1.25.5 => 1.26.0
  • golang.org/x/tools: v0.40.0 => v0.42.2

Maven artifacts:

  • org.scalameta:scalafmt-core_*: 3.10.2 => 3.10.7
  • org.scala-sbt:compiler-interface: 1.11.0 => 1.12.0
  • org.scala-sbt:util-interface: 1.11.7 => 1.12.4
  • org.google.protobuf:protobuf-java: 4.33.4 => 4.33.5
  • io.grpc:grpc-*: 1.77.0 => 1.79.0
  • com.google.api.grpc:proto-google-common-protos: 2.63.1 => 2.66.0

Motivation

Most of the change is a routine dependency version bump before a new patch level release. There are two specific changes of note.

First, Bazel 8.6.0 and 9.1.0 effectively make the compatibility_level attribute of the module directive a no-op per bazelbuild/bazel#28600.

Second, though protobuf v34.0 is out, we only update to v35.5 because v40.0 drops support for Bazel 7 (in maintenance mode until December 2026):

I'll confer with the Bazel Rules Author SIG on 2026-03-03 regarding whether or not we should begin planning to deprecate Bazel 7 support. Doing so would likely necessitate a major version bump to rules_scala 8.0.0. (It would be good to get some other large pending changes in before then, notably the possible rules_jvm_external migration.)

Removes `compatibility_level` from the `module` directive in
`MODULE.bazel`. Bumps the following dependency versions:

Bazel modules:
- `bazel_features`: 1.38.0 => 1.42.0
- `bazel_skylib`: 1.8.2 => 1.9.0
- `protobuf`: v33.4 => v33.5
- `rules_cc`: 0.2.14 => 0.2.17
- `rules_go`: 0.59.0 => 0.60.0
- `rules_java`: 9.3.0 => 9.6.1
- `rules_python`: 1.7.0 => 1.8.5

Golang:
- Golang: 1.25.5 => 1.26.0
- `golang.org/x/tools`: v0.40.0 => v0.42.2

Maven artifacts:
- `org.scalameta:scalafmt-core_*`: 3.10.2 => 3.10.7
- `org.scala-sbt:compiler-interface`: 1.11.0 => 1.12.0
- `org.scala-sbt:util-interface`: 1.11.7 => 1.12.4
- `org.google.protobuf:protobuf-java`: 4.33.4 => 4.33.5
- `io.grpc:grpc-*`: 1.77.0 => 1.79.0
- `com.google.api.grpc:proto-google-common-protos`: 2.63.1 => 2.66.0

---

Most of the change is a routine dependency version bump before a new
patch level release. There are two specific changes of note.

First, Bazel 8.6.0 and 9.1.0 effectively make the `compatibility_level`
attribute of the `module` directive a no-op per bazelbuild/bazel#28600.

Second, though `protobuf` v34.0 is out, we only update to v35.5 because
v40.0 drops support for Bazel 7 (in maintenance mode until December
2026):

- https://github.com/protocolbuffers/protobuf/releases/tag/v34.0
- protocolbuffers/protobuf@304c9ba
- https://protobuf.dev/support/migration/#dropped-bazel-7-support
- https://bazel.build/release

I'll confer with the Bazel Rules Author SIG on 2026-03-03 regarding
whether or not we should begin planning to deprecate Bazel 7 support.
Doing so would likely necessitate a major version bump to `rules_scala`
8.0.0. (It would be good to get some other large pending changes in
before then, notably the possible `rules_jvm_external` migration.)
@mbland mbland merged commit 8cef613 into bazel-contrib:master Feb 27, 2026
1 check passed
@mbland mbland deleted the version-bumps branch February 27, 2026 14:38
mbland added a commit to mbland/rules_scala that referenced this pull request Mar 3, 2026
Restores `compatibility_level = 7` to the `module` directive and yanks
version 7.2.3 from the Bazel Central Registry.

---

Per bazel-contrib#1816, bazel-contrib#1815 removed the `compatibility_level` attribute of the
`module` directive too soon. Builds using Bazel <8.6.0 or <9.1.0 with
other `rules_scala` 7.x dependencies in the build graph would break once
any module introduces `rules_scala` 7.2.3.
mbland added a commit that referenced this pull request Mar 5, 2026
Restores `compatibility_level = 7` to the `module` directive and yanks
version 7.2.3 from the Bazel Central Registry.

---

Per #1816, #1815 removed the `compatibility_level` attribute of the
`module` directive too soon. Builds using Bazel <8.6.0 or <9.1.0 with
other `rules_scala` 7.x dependencies in the build graph would break once
any module introduces `rules_scala` 7.2.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants