-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
glob
in WORKSPACE files (and .bzl
files loaded by same)
#11935
Comments
I would love to see this so that I could glob in diffs for a http_repository. That would be awesome. |
Oh, and I am using release 4.1.0rc4. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
Cc @Wyverald, this seems related to your proposal |
Another use case would be to collect state that a generated repo rule depends on. In my case I'm wanting to expose the git tags on the current HEAD so that they can be passed as tags to FWIW; adding this would if anything make things more hermetic because |
@Wyverald do you have a link to the relevant end user documentation? After reading through the referenced issue, I'm not clear on what was actually done there or what I should be using to solve this use case. |
The new method These changes will be included in the 7.1.0 release notes (which are still being edited right now). |
Description of the feature request:
A
glob()
function for repository rules would be useful for repo rules.Use cases include:
glob(“my.lockfile”, allow_empty=True)
. This would be useful forrules_jvm_external
where a user has to know whether rules have been pinned or not when re-pinning.Feature requests: what underlying problem are you trying to solve with this feature?
Sometimes, it's just not possible or it's impractical to enumerate all the inputs while writing the entry in a
WORKSPACE
file. In addition, it requires a file to be present, and sometimes it's useful to check for the presence of the file itself.What's the output of
bazel info release
?3.4.1
The text was updated successfully, but these errors were encountered: