Skip to content
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

A repository that publishes multiple modules to BCR #177

Closed
UebelAndre opened this issue Nov 19, 2024 · 3 comments
Closed

A repository that publishes multiple modules to BCR #177

UebelAndre opened this issue Nov 19, 2024 · 3 comments

Comments

@UebelAndre
Copy link

Hi, I am working on bazelbuild/rules_rust#2882 for rules_rust where we're splitting out some 3rd party integrations into their own workspace but want to keep the code within the repo for ease of testing and integration. Is there a way to have publish-to-bcr publish more than one item to BCR for a release in a repository?

@UebelAndre
Copy link
Author

Ah, I believe this is possible via moduleRoots

| moduleRoots | List of relative paths to Bazel modules within the repository. Set this if your MODULE.bazel file is not in the root directory, or if you want to publish multiple modules to the BCR. Defaults to `["."]`. Each module root must have a corresponding set of template files (metadata.template.json, source.template.json, presubmit.yml) under `.bcr` with the same relative path as the module. For example, if `moduleRoots` is `[".", "sub/module"]`, then there must be separate sets of template files under `.bcr` and `.bcr/sub/module`. |

@jsharpe
Copy link
Member

jsharpe commented Nov 20, 2024

rules_python does this for its gazelle plugin: https://github.com/bazelbuild/rules_python/tree/main/.bcr

@UebelAndre
Copy link
Author

Closing now that I know it's possible. Thank you!

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

No branches or pull requests

2 participants