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

Only run lint_tests on java_library not java_export #315

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

fzakaria
Copy link
Contributor

@fzakaria fzakaria commented Dec 2, 2024

Running list_tests on java_export will run afoul by trying to run spotbugs on included dependency that will clearly fail like java_proto_library.

Instead, the lint tests should only operate on the sources that comprise the java_library the export target eventually creates.

fixes #314

Running list_tests on java_export will run afoul by trying to run
spotbugs on included dependency that will clearly fail like
`java_proto_library`.

Instead, the lint tests should only operate on the sources that comprise
the `java_library` the export target eventually creates.

fixes bazel-contrib#314
@fzakaria
Copy link
Contributor Author

fzakaria commented Dec 2, 2024

Validated this locally with --override_module

Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the PR!

@shs96c shs96c merged commit 27d392c into bazel-contrib:main Dec 6, 2024
8 checks passed
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_export creates spotbugs/checkstyle rule for dependencies
2 participants