Skip to content

Add Bazel bzlmod support (MODULE.bazel)#629

Open
kunal9812 wants to merge 2 commits intop4lang:mainfrom
kunal9812:gsoc-2026-bazel-support
Open

Add Bazel bzlmod support (MODULE.bazel)#629
kunal9812 wants to merge 2 commits intop4lang:mainfrom
kunal9812:gsoc-2026-bazel-support

Conversation

@kunal9812
Copy link

  • Add MODULE.bazel with bzlmod dependencies (rules_cc, protobuf, grpc, fmt, boost.thread)
  • Add WORKSPACE.bzlmod to enable bzlmod mode
  • Add .bazelversion pinned to 8.5.0
  • Add .bazelrc with macOS compatibility flags

Verified: bazelisk build //:pi passes on macOS M1 with Bazel 8.5.0

Related to p4lang/behavioral-model GSoC 2026 qualification task for Project 1.1: BMv2 Packet Trace Support

- Add MODULE.bazel with bzlmod dependencies (rules_cc, protobuf, grpc,
  fmt, boost.thread)
- Add WORKSPACE.bzlmod to enable bzlmod mode
- Add .bazelversion pinned to 8.5.0
- Add .bazelrc with macOS compatibility flags

Verified: bazelisk build //:pi passes on macOS M1 with Bazel 8.5.0

Related to p4lang/behavioral-model GSoC 2026 qualification task
for Project 1.1: BMv2 Packet Trace Support
When PI is used as a Bazel external dependency, git submodules are
not initialized automatically. Vendor the required uthash headers
directly into third_party/ to fix the build.
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.

1 participant