-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
target_compatible_with
with genquery
fails in cases where query
would succeed
#12948
Comments
Interesting. There's a good argument here. I'm not sure what the right answer is. I believe the reason the first build fails is because But yes, since the only purpose of that dep is to scope the space of queryable targets, the target configuration isn't important for the actual query. On the other hand, if Conceptually I lean toward your intuition but I don't know how to fit that into FYI some relevant code is here:
Re: FYI @philsc |
At the very least I should fix the Mayber after that I'll have my head wrapped around what the better behaviour is. |
I split the |
Just to clarify for my own thoughts, can you elaborate on what you mean by the following @keith ?
Do you mean that it would be ideal for the sake of consistency or is there a particular use case for querying incompatible targets you have in mind? |
I meant for consistency. In this case I just want to query these targets "like normal" even though they're incompatible in some configurations. |
You can get a similar failure even without
|
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
With this root BUILD file:
If you run
bazel build //:query
you get this failure:Interestingly if you omit the
//:
from the target, it skips thegenquery
all together:If you just query this target, it works:
I'm not sure what the expectations are around genquery and it's similarity to query, but it would be ideal in this case if genquery would also succeed. Also I think the difference in behavior when you have
//:
or not is unexpected.What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 4.0.0
The text was updated successfully, but these errors were encountered: