Skip to content

Publish to bcr config #1

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 13 commits into from
Apr 2, 2025
Merged

Publish to bcr config #1

merged 13 commits into from
Apr 2, 2025

Conversation

hharrisd
Copy link
Owner

@hharrisd hharrisd commented Mar 5, 2025

References to other Issues or PRs

This is a follow-up work for the issue: Consider publishing grpc-gateway to Bazel Central Registry #5183

Have you read the Contributing Guidelines?

Yes

Brief description of what is fixed or changed

This PR aims to add the templates for the Publish to the Bazel Central Registry - BCR process.

The process is described in bazel-contrib/publish-to-bcr

Other comments

@hharrisd hharrisd self-assigned this Mar 5, 2025
@hharrisd hharrisd requested a review from AlejoAsd March 7, 2025 20:20
bazel: ${{ bazel }}
test_targets:
- "//examples/internal/..."
- "//:all"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This target does not exist, and I don't know if it makes sense to add this when we only really want to build the examples.

Suggested change
- "//:all"

@@ -0,0 +1,13 @@
bcr_test_module:
module_path: "MODULE.bazel"
Copy link
Collaborator

Choose a reason for hiding this comment

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

If I recall our original conversation correctly, we were discussing the possibility of creating a small test project within the grpc-gateway repo to run the pre-submit with. This project would import the grpc-gateway Bazel module and build the examples with it. That way, we would be testing the entire bzlmod pipeline.

If that is the case, we would have to create a MODULE.bazel file in the examples directory and configure it to import the grpc-gateway Bazel module, and update this configuration so to import that module instead.

Suggested change
module_path: "MODULE.bazel"
module_path: "examples/MODULE.bazel"

At this point, you are probably better informed than I am as to how to proceed with the pre-submit check, but I didn't want to approve without asking if the current configuration is intentional.

@johanbrandhorst
Copy link
Contributor

Thanks for looking into this, please let me know what, if anything, you need me to help with.

@hharrisd hharrisd requested a review from AlejoAsd March 21, 2025 15:53
@hharrisd hharrisd force-pushed the publish-to-bcr-config branch from 2a698f3 to 5826a0c Compare April 2, 2025 17:08
@hharrisd hharrisd merged commit 5ddd753 into main Apr 2, 2025
14 checks passed
hharrisd added a commit that referenced this pull request Apr 4, 2025
This reverts commit 5ddd753, reversing
changes made to 6662530.
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.

3 participants