Closed

Description
Description of the bug:
Looks like this was already fixed by a Googler at f6cccae and would be a trivial backport to 5.3.x.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
(NOTE: It doesn't matter if WORKSPACE contains a repository rule for bazel_skylib.)
$ cd $(mktemp -d)
$ touch WORKSPACE
$ cat >BUILD <<EOF
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
bool_flag(
name = "example",
build_setting_default = True,
)
EOF
$ USE_BAZEL_VERSION=5.3.0 bazelisk info --no//:example
ERROR: unknown key(s): '--no//:example'
Which operating system are you running Bazel on?
Linux
What is the output of bazel info release
?
release 5.3.0
If bazel info release
returns development 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 master; git rev-parse HEAD
?
No response
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
No response