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

Make available inline rules directly in the jar_jar rule. #19

Merged
merged 5 commits into from
Jun 3, 2022

Conversation

cyberfox
Copy link
Contributor

This allows us to put the rule in the BUILD instead of having a separate file for the rules. This creates the file to hold the filtering rule in the sandbox, instead of in the source tree.

This is particularly useful when calling jar_jar from a macro, when you don't want to dynamically create files in the source tree to hold a temporarily created rule file.

This allows us to put the rule in the BUILD instead of having a separate file for the rules.
Copy link
Collaborator

@johnynek johnynek left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I had a couple of requests.

jar_jar.bzl Show resolved Hide resolved
jar_jar.bzl Outdated Show resolved Hide resolved
@cyberfox
Copy link
Contributor Author

@johnynek I've updated the documentation to explain the inline_rules option, and with that change I think it's done, barring any changes you'd like me to make.

@cyberfox cyberfox requested a review from johnynek June 3, 2022 20:15
@johnynek johnynek merged commit 670d3c8 into bazeltools:master Jun 3, 2022
@johnynek
Copy link
Collaborator

johnynek commented Jun 3, 2022

Thanks for doing this!

This looks really great, especially as you say for macros.

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.

2 participants