generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
enhancementNew feature or requestNew feature or requestneed: fundingWe could prioritize this based on donation to https://opencollective.com/aspect-buildWe could prioritize this based on donation to https://opencollective.com/aspect-build
Description
What happened?
Using rules_py on Windows via MODULE.bazel fails with the following message:
I see this with all versions from 1.4.0 to 1.6.6. MODULE only. Bazel 8.4.1.
With py_venv in my BUILD.bazel:
>bazel test //...
INFO: Invocation ID: 8e301fb2-9e5e-40e3-9afb-deb9f757fc2f
ERROR: error loading package '@@aspect_rules_py+//py/tools/venv_bin': at D:/udu/b/ovnmmawr/external/aspect_rules_py+/tools/release/defs.bzl:5:6: Unable to find package for @@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]//rust:defs.bzl: The repository '@@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]' could not be resolved: No repository visible as '@rules_rust' from repository '@@aspect_rules_py+'.
ERROR: D:/udu/b/ovnmmawr/external/aspect_rules_py+/py/private/toolchain/venv/BUILD.bazel:3:17: error loading package '@@aspect_rules_py+//py/tools/venv_bin': at D:/udu/b/ovnmmawr/external/aspect_rules_py+/tools/release/defs.bzl:5:6: Unable to find package for @@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]//rust:defs.bzl: The repository '@@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]' could not be resolved: No repository visible as '@rules_rust' from repository '@@aspect_rules_py+'. and referenced by '@@aspect_rules_py+//py/private/toolchain/venv:venv_toolchain_source'
ERROR: Analysis of target '//:venv' failed; build aborted: Analysis failed
Without py_venv in my BUILD.bazel:
>bazel test //...
INFO: Invocation ID: 4de2c04c-321a-4e43-a3e0-44348f85ba2f
ERROR: error loading package '@@aspect_rules_py+//py/tools/venv_bin': at D:/udu/b/ovnmmawr/external/aspect_rules_py+/tools/release/defs.bzl:5:6: Unable to find package for @@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]//rust:defs.bzl: The repository '@@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]' could not be resolved: No repository visible as '@rules_rust' from repository '@@aspect_rules_py+'.
ERROR: D:/udu/b/ovnmmawr/external/aspect_rules_py+/py/private/toolchain/venv/BUILD.bazel:3:17: error loading package '@@aspect_rules_py+//py/tools/venv_bin': at D:/udu/b/ovnmmawr/external/aspect_rules_py+/tools/release/defs.bzl:5:6: Unable to find package for @@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]//rust:defs.bzl: The repository '@@[unknown repo 'rules_rust' requested from @@aspect_rules_py+]' could not be resolved: No repository visible as '@rules_rust' from repository '@@aspect_rules_py+'. and referenced by '@@aspect_rules_py+//py/private/toolchain/venv:venv_toolchain_source
This is also reported via #566 in some messages after it was closed; creating a new issue for visibility.
Version
Development (host) and target OS/architectures:
Output of bazel --version:
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneed: fundingWe could prioritize this based on donation to https://opencollective.com/aspect-buildWe could prioritize this based on donation to https://opencollective.com/aspect-build