Bzlmod: Make compatibility_level and max_compatibility_level noops#28600
Closed
meteorcloudy wants to merge 3 commits intobazelbuild:masterfrom
Closed
Bzlmod: Make compatibility_level and max_compatibility_level noops#28600meteorcloudy wants to merge 3 commits intobazelbuild:masterfrom
meteorcloudy wants to merge 3 commits intobazelbuild:masterfrom
Conversation
Member
Author
|
@bazel-io fork 9.1.0 |
Member
Author
|
@bazel-io fork 8.6.0 |
There was a problem hiding this comment.
Code Review
This pull request effectively makes compatibility_level and max_compatibility_level no-ops by ignoring their values and removing related logic. The documentation has been updated accordingly, and warnings are now issued when these deprecated attributes are used.
My main feedback is that the new deprecation warnings are currently limited to the root module. This should be expanded to all modules to ensure all maintainers are aware of the change. I've left specific comments with suggestions on how to address this.
Wyverald
pushed a commit
that referenced
this pull request
Feb 10, 2026
…noops Increasing `compatibility_level` leads to version conflicts that are difficult for end users to resolve. Therefore, we are making `compatibility_level` and `max_compatibility_level` no-ops. This will be effective from Bazel 8.6.0 and 9.1.0. Module maintainers introducing major breaking changes should ensure that build failures provide clear error messages and actionable migration paths. Fixes #22972 RELNOTES: The `compatibility_level` and `max_compatibility_level` attributes of `module` in MODULE.bazel are now no-ops. Module maintainers should stop specifying those attributes and provide clear build time error messages and actionable migration paths when making major breaking changes. Closes #28600. PiperOrigin-RevId: 868151978 Change-Id: I217e7f0c02e729f7c89ebab140d8bbd754db13be
Wyverald
pushed a commit
that referenced
this pull request
Feb 10, 2026
…noops Increasing `compatibility_level` leads to version conflicts that are difficult for end users to resolve. Therefore, we are making `compatibility_level` and `max_compatibility_level` no-ops. This will be effective from Bazel 8.6.0 and 9.1.0. Module maintainers introducing major breaking changes should ensure that build failures provide clear error messages and actionable migration paths. Fixes #22972 RELNOTES: The `compatibility_level` and `max_compatibility_level` attributes of `module` in MODULE.bazel are now no-ops. Module maintainers should stop specifying those attributes and provide clear build time error messages and actionable migration paths when making major breaking changes. Closes #28600. PiperOrigin-RevId: 868151978 Change-Id: I217e7f0c02e729f7c89ebab140d8bbd754db13be
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Feb 10, 2026
…noops (#28615) Increasing `compatibility_level` leads to version conflicts that are difficult for end users to resolve. Therefore, we are making `compatibility_level` and `max_compatibility_level` no-ops. This will be effective from Bazel 8.6.0 and 9.1.0. Module maintainers introducing major breaking changes should ensure that build failures provide clear error messages and actionable migration paths. Fixes #22972 RELNOTES: The `compatibility_level` and `max_compatibility_level` attributes of `module` in MODULE.bazel are now no-ops. Module maintainers should stop specifying those attributes and provide clear build time error messages and actionable migration paths when making major breaking changes. Closes #28600. PiperOrigin-RevId: 868151978 Change-Id: I217e7f0c02e729f7c89ebab140d8bbd754db13be Co-authored-by: Yun Peng <[email protected]>
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Feb 10, 2026
…noops (#28616) Increasing `compatibility_level` leads to version conflicts that are difficult for end users to resolve. Therefore, we are making `compatibility_level` and `max_compatibility_level` no-ops. This will be effective from Bazel 8.6.0 and 9.1.0. Module maintainers introducing major breaking changes should ensure that build failures provide clear error messages and actionable migration paths. Fixes #22972 RELNOTES: The `compatibility_level` and `max_compatibility_level` attributes of `module` in MODULE.bazel are now no-ops. Module maintainers should stop specifying those attributes and provide clear build time error messages and actionable migration paths when making major breaking changes. Closes #28600. PiperOrigin-RevId: 868151978 Change-Id: I217e7f0c02e729f7c89ebab140d8bbd754db13be Co-authored-by: Yun Peng <[email protected]>
mbland
added a commit
to mbland/rules_scala
that referenced
this pull request
Feb 27, 2026
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
added a commit
to bazel-contrib/rules_scala
that referenced
this pull request
Feb 27, 2026
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.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increasing
compatibility_levelleads to version conflicts that are difficultfor end users to resolve. Therefore, we are making
compatibility_levelandmax_compatibility_levelno-ops. This will be effective from Bazel 8.6.0 and 9.1.0.Module maintainers introducing major breaking changes should ensure that build
failures provide clear error messages and actionable migration paths.
Fixes #22972
RELNOTES: The
compatibility_levelandmax_compatibility_levelattributes ofmodulein MODULE.bazel are now no-ops. Module maintainers should stop specifying those attributes and provide clear build time error messages and actionable migration paths when making major breaking changes.