Using use_extension
with something that isn't an extension crashes bazel
#22306
Labels
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
untriaged
Description of the bug:
I was trying to move a list of things out of the
MODULE.bazel
file, and created a bzl file with something likeartifacts = ["a", "b", "c"]
, then tried to load that withuse_extension()
, resulting in the crash below. See bazelbuild/rules_android@52d9d55 for the repro.Which category does this issue belong to?
External Dependency
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazelbuild/rules_android@52d9d55
Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
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
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
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: