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

Avoid building build_test deps unnecessarily #448

Merged
merged 2 commits into from
May 31, 2023

Conversation

UebelAndre
Copy link
Contributor

I ran into an issue where I had a build_test that was only compatible with a particular platform. I had annotated the target with target_compatible_with but continued to get builds on the incompatible platform. This came down to my bazel test //... invocation picking up the {name}_{idx}__deps targets and building the dependency anyway. This change updates these targets to account for newer common attributes and tags them as manual so they're only built when the user facing test target is built.

Copy link
Collaborator

@tetromino tetromino left a comment

Choose a reason for hiding this comment

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

Looks good, thanks. I pushed a whitespace fix to make the buildifier check pass.

@UebelAndre
Copy link
Contributor Author

Thank you!

@UebelAndre
Copy link
Contributor Author

@tetromino would it be possible to also get a new release after this change?

@UebelAndre
Copy link
Contributor Author

@tetromino friendly ping 😅

@tetromino tetromino merged commit 0a34b7e into bazelbuild:main May 31, 2023
@tetromino
Copy link
Collaborator

@tetromino friendly ping sweat_smile

Draft PR: #451

(Note we also may need to fix some sort of stardoc-related weirdness with bazel at head to unblock ci.)

@UebelAndre UebelAndre deleted the manual branch May 31, 2023 19:40
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