Skip to content

Keep dependency versions in sync for WORKSPACE and MODULE.bazel #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Keep dependency versions in sync for WORKSPACE and MODULE.bazel #194

merged 2 commits into from
Mar 12, 2024

Conversation

luangong
Copy link
Contributor

@luangong luangong commented Mar 12, 2024

As mentioned in the Bazel blog article, the old WORKSPACE system is planned to be disabled by default in Bazel 8, and to be removed altogether in Bazel 9. The WORKSPACE file will eventually be removed, but for now, it’s best to keep the dependency versions in both systems in sync, so that we can build the project with Bzlmod either disabled or enabled.

Note that there is a compatibility issue that prevents this project from depending on protobuf v22 and higher. Until that issue is fixed, v21.7 is the highest version that works with both systems.

References:

As mentioned in the Bazel blog article, the old `WORKSPACE` system is
planned to be disabled by default in Bazel 8, and to be removed
altogether in Bazel 9.  The `WORKSPACE` file will eventually be removed,
but for now, it’s best to keep the dependency versions in both systems
in sync, so that we can build the project with Bzlmod either disabled or
enabled.

Note that there is a compatibility issue that prevents this project from
depending on protobuf v22 and higher.  Until that issue is fixed, v21.7
is the highest version that both systems have.

References:

- https://blog.bazel.build/2023/12/11/bazel-7-release.html#bzlmod
- https://registry.bazel.build/modules/protobuf
- https://github.com/protocolbuffers/protobuf/blob/v21.7/protobuf_deps.bzl#L96-L104
- #186
@dibenede
Copy link
Contributor

Could you please also change these to 21.7 for consistency?

@dibenede dibenede merged commit b097aad into protocolbuffers:main Mar 12, 2024
4 checks passed
@luangong luangong deleted the dependency-versions branch March 12, 2024 19:58
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