Unexported (non-global) provider symbols are allowed despite documentation specification #23887
Labels
team-Starlark-Integration
Issues involving Bazel's integration with Starlark, excluding builtin symbols
type: bug
untriaged
Description of the bug:
https://bazel.build/rules/lib/globals/bzl#provider describes
provider()
to:The use of "must" creates the expectation that such symbols would be disallowed, but there doesn't appear to be enforcement of this behavior.
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
The inner
provider()
was not stored in a global value, but the build still succeeded.Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?7.3.2
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
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
The documentation string was introduced in 3ebfe24
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: