Skip to content

Conversation

@meteorcloudy
Copy link
Member

@meteorcloudy meteorcloudy commented Dec 17, 2025

Update .bazelversion to 9.* for all Bzlmod examples to verify compatibility with Bazel 9 release candidates.

Changes:

  • Update .bazelversion to 9.* in all 6 Bzlmod examples.
  • example 01: Replace glog with abseil-cpp and iostream due to glog incompatibility with Bazel 9.
  • example 02: Replace glog/gflags overrides with abseil-cpp (archive_override) and re2 (git_override) to demonstrate override capabilities with Bazel 9 compatible libraries.
  • Verified all builds pass with Bazel 9.0.0rc3.

- Update .bazelversion to 9.* for all Bzlmod examples
- Replace incompatible glog with abseil-cpp/iostream in 01 and 02
- Verify all builds pass with Bazel 9.0.0rc3
- Use abseil-cpp for archive_override
- Use re2 for git_override
- This restores the override examples while ensuring compatibility with Bazel 9

bazel_dep(name = "rules_cc", version = "0.0.17")

# 1. The metadata of glog is fetched from the BCR, including its dependencies (gflags).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update this comment (s/glog/abseil-cpp/; no repo_name; also I'm not sure if abseil-cpp has transitive deps?)

# gflag is still an indirect dependency, the override itself doesn't give the root module visibility on gflags.
# Override re2 to a specific commit with git_override.
# This demonstrates how to use git_override to depend on a specific commit.
bazel_dep(name = "re2", version = "2024-07-02", repo_name = "com_googlesource_re2")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restore the previous comment, and also remove this bazel_dep

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