[Bazel] Migrate to Bzlmod and Bazel 8.#5454
Merged
Merged
Conversation
f70b83b to
d06e848
Compare
fruffy
approved these changes
Dec 23, 2025
fruffy
left a comment
Collaborator
There was a problem hiding this comment.
I trust the LLM on this :)
Fixes p4lang#5065 and fixes p4lang#5066. Signed-off-by: smolkaj <smolkaj@google.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 2, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
5 tasks
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 2, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 2, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 2, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 2, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 3, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
smolkaj
added a commit
to smolkaj/bazel-central-registry
that referenced
this pull request
Mar 3, 2026
p4c (https://github.com/p4lang/p4c) is the P4_16 reference compiler. This is the first submission of p4c to the BCR, made possible by the Bzlmod migration in v1.2.5.11 (p4lang/p4c#5454, p4lang/p4c#5497). Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
keith
pushed a commit
to bazelbuild/bazel-central-registry
that referenced
this pull request
Mar 3, 2026
## Description Adds [p4c](https://github.com/p4lang/p4c) v1.2.5.11 — the P4_16 reference compiler — to the BCR. This is the first p4c submission, made possible by the Bzlmod migration completed in this release ([p4lang/p4c#5454](p4lang/p4c#5454), [p4lang/p4c#5497](p4lang/p4c#5497)). ## Module - **Name:** `p4c` - **Version:** `1.2.5.11` - **Source:** https://github.com/p4lang/p4c/releases/tag/v1.2.5.11 ## Notes - The `inja` dependency is not yet in the BCR and is loaded via a module extension defined in p4c's own `bazel/repositories.bzl`. This is self-contained and requires no BCR changes. - The `p4c_ir_extensions` module extension provides an opt-in mechanism for downstream users to register custom IR extensions; it has no effect unless explicitly used. - Presubmit builds `@p4c//...` on Ubuntu 22.04 and 24.04 against Bazel 7.x, 8.x, and 9.x. ## Checklist - [x] Module added under `modules/p4c/` - [x] `metadata.json` with homepage, maintainers, and repository - [x] `source.json` pointing to the release tarball with verified SHA-256 integrity - [x] `MODULE.bazel` with correct version - [x] `presubmit.yml` covering Ubuntu 22.04/24.04 × Bazel 7/8/9 Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
ileitch
pushed a commit
to ileitch/bazel-central-registry
that referenced
this pull request
Apr 7, 2026
## Description Adds [p4c](https://github.com/p4lang/p4c) v1.2.5.11 — the P4_16 reference compiler — to the BCR. This is the first p4c submission, made possible by the Bzlmod migration completed in this release ([p4lang/p4c#5454](p4lang/p4c#5454), [p4lang/p4c#5497](p4lang/p4c#5497)). ## Module - **Name:** `p4c` - **Version:** `1.2.5.11` - **Source:** https://github.com/p4lang/p4c/releases/tag/v1.2.5.11 ## Notes - The `inja` dependency is not yet in the BCR and is loaded via a module extension defined in p4c's own `bazel/repositories.bzl`. This is self-contained and requires no BCR changes. - The `p4c_ir_extensions` module extension provides an opt-in mechanism for downstream users to register custom IR extensions; it has no effect unless explicitly used. - Presubmit builds `@p4c//...` on Ubuntu 22.04 and 24.04 against Bazel 7.x, 8.x, and 9.x. ## Checklist - [x] Module added under `modules/p4c/` - [x] `metadata.json` with homepage, maintainers, and repository - [x] `source.json` pointing to the release tarball with verified SHA-256 integrity - [x] `MODULE.bazel` with correct version - [x] `presubmit.yml` covering Ubuntu 22.04/24.04 × Bazel 7/8/9 Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com>
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.
Fixes #5065 and fixes #5066.
NOTE: This PR touches only Bazel files (*.bzl, *.bazel, bazel/**).
This currently requires one temporary ugliness since P4Runtime has not yet been added to the Bazel Central Registry (p4lang/p4runtime#572).
Acknowledgements: Google Antigravity/Gemini 3 did most of the heavy lifting on this PR. I reviewed, refined some details, and provided guidance.