aspect-build / aspect-build/rules_py

[feature]: Windows support

Open
#700 4 comments 0 reactions 1 assignee Claimed by @arrdem View on GitHub
feature request
Dominant language
Starlark
Stars
145
Forks
97
Avg merge
1d 1h
Merged PRs (30d)
71

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 https://github.com/aspect-build/rules_py/issues/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

```shell

```

### Any other information?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.