Bzlmod dependencies are not visible in WORKSPACE file #16197
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
more data needed
P2
We'll consider working on this in future. (Assignee optional)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
Description of the bug:
Repositories loaded via bzlmod are not available in the WORKSPACE file for loading macros from. Although I believe the intention is for bzlmod to fully replace WORKSPACE macros, it is convenient to have a mixture during the transition phase.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
An example is available in this github repo: https://github.com/cameron-martin/bzlmod-workspace-repro
If you run
bazel build //...
in the root module, I get the following error:However, I would expect the
@sub_module
repository to be loaded by bzlmod and available in the WORKSPACE file.Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 5.3.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.I also tried using the latest green, using bazelisk and I still get the same error
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?
No, I didn't.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: