-
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
No warning or error if an invalid target attribute is set to None #11000
Comments
Dup of Google-internal issue: b/122552411. |
Is this still a P1 bug? |
This is certainly surprising, and should be an error for non-existent attributes. Should |
Wait what? :) |
Fixes: bazelbuild#11000 RELNOTES[INC]: Fails on unknown attributes (even when set to None) PiperOrigin-RevId: 562519157 Change-Id: If5e430c73485c8ae9661f4231692384a057f37d5
Fixes: bazelbuild#11000 RELNOTES[INC]: Fails on unknown attributes (even when set to None) PiperOrigin-RevId: 562519157 Change-Id: If5e430c73485c8ae9661f4231692384a057f37d5
Fixes: #11000 RELNOTES[INC]: Fails on unknown attributes (even when set to None) PiperOrigin-RevId: 562519157 Change-Id: If5e430c73485c8ae9661f4231692384a057f37d5
A fix for this issue has been included in Bazel 6.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. Thanks! |
Description of the problem / feature request:
Given the following BUILD file:
I would expect some sort of error to be printed. There is an error if the invalid attribute is set to some non-
None
value (0
,False
, whatever) butNone
is just silently ignored.A warning would also be acceptable (backwards compatibility and all), maybe with a flag to make it a hard error (defaulting to
true
in the next breaking release).This behavior happens for both built-in and Starlark-defined rules.
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 2.2.0
The text was updated successfully, but these errors were encountered: