Skip to content

Ensure deps referenced in java_test_suite make vars are passed to tests #332

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

thirtyseven
Copy link
Contributor

@thirtyseven thirtyseven commented Mar 21, 2025

#303 introduced a regression where if a java_test_suite references a dep in its jvm_flags via $(location) or other Make variable, it will not be present in the deps of the generated java_test leading to analysis errors. This PR adds an example demonstrating the issue and suggests a possible fix.

Fixes #334

@thirtyseven thirtyseven changed the title Ensure deps referenced in java_test_suite jvm_flags are passed to tests Ensure deps referenced in java_test_suite make vars are passed to tests Mar 21, 2025
@thirtyseven
Copy link
Contributor Author

Any feedback on this? Is there a better approach?

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.

java_test_suite cannot use Make variable substitution
1 participant