You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With bazel @ f4b071c there is a new deprecation warning about the use of config_setting:
WARNING: /.../BUILD.bazel:176:15: in config_setting rule //:linux_x86_64: select() on cpu is deprecated. Use platform constraints instead: https://bazel.build/docs/configurable-attributes#platforms.
This warning is fine on its own, but when building a non-trivial project, you will likely get dozens of this same warning from projects you don't control, such as these from grpc:
WARNING: /.../external/grpc+/BUILD:192:15: in config_setting rule @@grpc+//:mac_arm64: select() on cpu is deprecated. Use platform constraints instead: https://bazel.build/docs/configurable-attributes#platforms.
These external projects aren't very actionable, but are very noisy in build logs. I think we should consider scoping some types of warnings to only the main repo to avoid this noise.
This could cause some false-positives when you're creating the repos yourself, meaning using an internal foo.BUILD file that produces the warning.
Another option would be allow users to disable specific warnings like these instead of having to disable all warnings with --ui_event_filters=-WARNING
Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
@gregestren it looks like there are some of these triggered by bazel itself too, regardless of this can you fix those?
WARNING: /github/home/.cache/bazel/_bazel_root/991c1318309cea4e3284840cbcc05428/external/bazel_tools/src/conditions/BUILD:145:27: in config_setting rule @@bazel_tools//src/conditions:host_windows_arm64_constraint: select() on host_cpu is deprecated. Use platform constraints instead: https://bazel.build/docs/configurable-attributes#platforms.
WARNING: /github/home/.cache/bazel/_bazel_root/991c1318309cea4e3284840cbcc05428/external/bazel_tools/src/conditions/BUILD:145:27: in config_setting rule @@bazel_tools//src/conditions:host_windows_x64_constraint: select() on host_cpu is deprecated. Use platform constraints instead: https://bazel.build/docs/configurable-attributes#platforms.
Description of the feature request:
With bazel @ f4b071c there is a new deprecation warning about the use of config_setting:
This warning is fine on its own, but when building a non-trivial project, you will likely get dozens of this same warning from projects you don't control, such as these from grpc:
These external projects aren't very actionable, but are very noisy in build logs. I think we should consider scoping some types of warnings to only the main repo to avoid this noise.
This could cause some false-positives when you're creating the repos yourself, meaning using an internal foo.BUILD file that produces the warning.
Another option would be allow users to disable specific warnings like these instead of having to disable all warnings with
--ui_event_filters=-WARNING
Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
No response
Which operating system are you running Bazel on?
ubuntu 22.04 x86_64
What is the output of
bazel info release
?f4b071c
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: