-
Notifications
You must be signed in to change notification settings - Fork 360
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
feat: patch include
s in MODULE.bazel
when publishing
#3301
Comments
I'll bring this up at the next Rules Authors SIG meeting. |
Here's a couple more things I thought about: "pattern"Maybe a "pattern" that could work nicely would be to invoke such a tool from a
IMHO it would be ideal if renaming variablesFor the renaming of the variables, the tool could probably use the path to the # includes.MODULE.bazel at the root
include("//dir1/dir2/foo.MODULE.bazel")
bar = use_extension("//other/path:extension.bzl", "bar") # dir1/dir2/foo.MODULE.bazel
bar = use_extension("//1/2/3:extension.bzl", "bar") These would expand to: # MODULE.bazel at the root
# include("//dir1/dir2/foo.MODULE.bazel")
dir1_dir2_foo_bar = use_extension("//1/2/3:extension.bzl", "bar")
bar = use_extension("//other/path:extension.bzl", "bar") |
We discussed this in the Rules Authors SIG meeting and would consider funding the development of a standalone tool (e.g. in Go or Rust) that consumes a segmented module file and combines it into a single module file that can be submitted to the BCR. Before the SIG commits to funding this tool, we would like to make sure that it will be reasonably popular. If you would like to see this implemented, please upvote! If you would consider working on this, please speak up. |
MODULE.bazel
can useinclude
to organize dependencies but, per the docs:In Slack Thread @fmeum suggested that
It would be great to have such a tool and/or automation in the BCR tools!
The text was updated successfully, but these errors were encountered: