-
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
Add attribute validation to IncompatibleTargetChecker. #18027
Conversation
This causes errors with configurable `target_compatible_with` to be reported as errors, rather than causing a Bazel crash. Fixes bazelbuild#18021.
@philsc: Can you review the changes to incompatible target checker? Specifically I'm not sure about the error: we might want to try and give a better error message here (something like " |
Noted #18027 (comment): deferring to @philsc . |
src/main/java/com/google/devtools/build/lib/analysis/constraints/IncompatibleTargetChecker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/skyframe/PrerequisiteProducer.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/skyframe/PrerequisiteProducer.java
Outdated
Show resolved
Hide resolved
From your PR here, it looks to me like the error is:
That sounds like a good error message to me, but I understand where you're coming from. On the one hand, I like that it's the same error message as all the other I don't have a strong enough opinion on this, apologies. I think the current error message is fine, but if you want to add a more specific one, then that sounds good to me too. |
So, for this target:
the error is
|
That looks good to me 👍 |
I'm merging this myself. |
This causes errors with configurable `target_compatible_with` to be reported as errors, rather than causing a Bazel crash. Fixes bazelbuild#18021. Closes bazelbuild#18027. PiperOrigin-RevId: 523976899 Change-Id: I2602aa3d4febc4c486d610e19c3a61632b0519b5
This causes errors with configurable `target_compatible_with` to be reported as errors, rather than causing a Bazel crash. Fixes bazelbuild#18021. Closes bazelbuild#18027. PiperOrigin-RevId: 523976899 Change-Id: I2602aa3d4febc4c486d610e19c3a61632b0519b5
This causes errors with configurable
target_compatible_with
to be reported as errors, rather than causing a Bazel crash.Fixes #18021.