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

gazelle: Fix java_binary targets in test trees #240

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

illicitonion
Copy link
Collaborator

Before they were generated with a dependency on a target which didn't exist.

Instead, add the dependency on the -test-lib target of the java_test_suite in their package, and mark them as testonly.

This is hopefully a pretty rare edge-case, but has been observed.

Before they were generated with a dependency on a target which didn't
exist.

Instead, add the dependency on the -test-lib target of the
java_test_suite in their package, and mark them as testonly.

This is hopefully a pretty rare edge-case, but has been observed.
@illicitonion illicitonion enabled auto-merge (squash) January 16, 2024 14:50
@stevebarrau stevebarrau changed the title Fix java_binary targets in test trees gazelle: Fix java_binary targets in test trees Jan 16, 2024
@illicitonion illicitonion merged commit b04853d into bazel-contrib:main Jan 16, 2024
2 checks passed
@illicitonion illicitonion deleted the testonly-binaries branch January 16, 2024 14:51
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