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

Expand "Make" variables inside of values in the env dictionary on test rules #2476

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

aaronsky
Copy link
Contributor

@aaronsky aaronsky commented Jun 21, 2024

Makes "Make" variables usable inside the env attr on test rules.

Despite the leveraged API being deprecated for years now, this approach has proven effective in my own codebase.

@aaronsky aaronsky force-pushed the aaronsky/test_rule_expand_make_vars branch from 3290cae to 60b6b90 Compare June 22, 2024 08:55
@aaronsky
Copy link
Contributor Author

aaronsky commented Jun 25, 2024

I think I've gotten the docs and tests in order, but willing to revise if the testing is insufficient. I believe the Bazel HEAD failures are not of my own design.

@aaronsky aaronsky marked this pull request as ready for review June 25, 2024 01:15
@aaronsky aaronsky changed the title wip: Expand "Make" variables inside of values in the env dictionary on test rules Expand "Make" variables inside of values in the env dictionary on test rules Jun 25, 2024
Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

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

Nice!

@keith keith enabled auto-merge (squash) June 25, 2024 16:00
@keith keith merged commit 3c4111a into bazelbuild:master Jun 25, 2024
7 of 8 checks passed
@aaronsky aaronsky deleted the aaronsky/test_rule_expand_make_vars branch June 25, 2024 16:18
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