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

Propagate bazel tags= in java_export sub-targets #647

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

dmivankov
Copy link
Contributor

One use-case is using tags=["manual"] to exclude building of these targets by default.

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.

Looks great, but there's an unexpected change in the existing functionality. Once that's fixed, I'll be happy to merge this into the tree. Thank you for your PR!

@@ -61,15 +61,14 @@ def java_export(
and so may contain any valid parameter for that rule.
"""

tags = tags + ["maven_coordinates=%s" % maven_coordinates]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Previously, both the java_library and the maven_project_jar had the maven coordinates added in their tag. With this change, only the former includes it. Please add the coordinates tag back to maven_project_jar too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed now

One use-case is using tags=["manual"] to exclude building of these targets by default.
@shs96c shs96c merged commit 77225e0 into bazelbuild:master Jan 17, 2022
@shs96c
Copy link
Collaborator

shs96c commented Jan 17, 2022

Thank you for the PR! Merging now :)

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.

None yet

3 participants