clean command errors if Starlark-defined flags are provided #11506
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: bug
Description of the problem / feature request:
I have set a Starlark-defined flag in my
.bazelrc
file:Since
bazel clean
inherits the command-line flags frombuild
, runningbazel clean
fails with the following error message:It's unclear to me why
bazel clean
looks at any flags defined forbazel build
(AFAICT, clean unconditionally deletes everything, so it probably shouldn't even look at.bazelrc
common
flags). At the very least,bazel clean
should ignore Starlark-defined flags.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
clone
https://github.com/bazelbuild/rules_go
run
bazel clean --@io_bazel_rules_go//go/config:incompatible_package_conflict_is_error=True
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?3.1.0 / 3.2.0rc1
The text was updated successfully, but these errors were encountered: