use_extension
fails with bzl from a repo introduced by use_repo_rule
#22414
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
Description of the bug:
My MODULE.bazel file looks like this:
I get the error:
no repo visible as '@config' here
.My code builds if I use a local label (
//:repo_ext.bzl
instead of@config//:repo_ext.bzl
).Tested with Bazel 7.1, but it repros with
USE_BAZEL_VERSION=last_green
.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.
No response
Which operating system are you running Bazel on?
MacOS
What is the output of
bazel info release
?release 7.1.0
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: