bazel-lib
bazel-lib copied to clipboard
[FR]: Update bazelrc recommendations now that 'common' is fixed
What is the current behavior?
Bazel 6.3.0 contains
Options specified on the pseudo-command common in .rc files are now ignored by commands that do not support them as long as they are valid options for any Bazel command. Previously, commands that did not support all options given for common would fail to run. These previous semantics of common are now available via the new always pseudo-command. (https://github.com/bazelbuild/bazel/pull/18609)
Describe the feature
This means we can use this rather than exhaustively specifying many flags under several commands like build, query, fetch
Actually it's Bazel 6.4.0 where common now works with user-defined flags as well.