Skip to content

[feature]: Windows support #700

@peakschris

Description

@peakschris

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

No one assigned

    Labels

    enhancementNew feature or requestneed: fundingWe could prioritize this based on donation to https://opencollective.com/aspect-build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions