maybe
doesn't work in a bzlmod
module implementation function
#15377
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
P2
We'll consider working on this in future. (Assignee optional)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
Description of the bug:
A common pattern to avoid needing to determine whether or not to create new workspaces in a repository rule or macro is to use
maybe
to check thenative.existing_rules()
for the presence of a particular well-known name. This used to work in abzlmod
implementation function, but now no longer does.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 5.1.1
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 master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
Not yet
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: