Skip to content

Conversation

@arrdem
Copy link
Collaborator

@arrdem arrdem commented Nov 12, 2025

Add a config_setting allowing users to toggle the default venv strategy so that users have to explicitly opt into the new-style static venv.

Mitigates #696

Changes are visible to end-users: yes

  • Searched for relevant documentation and updated as needed: yes
  • Breaking change (forces users to change their own code or config): yes
  • Suggested release notes appear below: yes

Test plan

  • Manual testing; please provide instructions so we can reproduce:

TODO

@aspect-workflows
Copy link

aspect-workflows bot commented Nov 12, 2025

test-os:linux-bzl:8 (Test)

⚠️ Buildkite build #1331 failed.

@@+uv+pypi//:all_whl_requirements failed to build

error loading package '@@+uv+pypi//': at /mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6:
compilation of module 'py/private/link/defs.bzl' failed

@@+uv+venv__pypi__default//cowsay:cowsay failed to build

error loading package '@@+uv+venv__pypi__default//cowsay': at
/mnt/ephemeral/workdir/aspect-build/rules_py/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed
error loading package '@@+uv+venv__pypi__default//cowsay': at
/mnt/ephemeral/workdir/aspect-build/rules_py/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

//py:defs.doc_extract failed to build

in src attribute of starlark_doc_extract rule //py:defs.doc_extract: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed. Since this rule was created by the macro 'bzl_library', the error might
have been caused by the macro implementation

💡 To reproduce the build failures, run

bazel build @@+uv+pypi//:all_whl_requirements @@+uv+venv__pypi__default//cowsay:cowsay //py:defs.doc_extract

test-os:linux-bzl:latest (Test)

⚠️ Buildkite build #1331 failed.

@@+uv+venv__pypi__default//cowsay:cowsay failed to build

error loading package '@@+uv+venv__pypi__default//cowsay': at
/mnt/ephemeral/workdir/aspect-build/rules_py/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed
error loading package '@@+uv+venv__pypi__default//cowsay': at
/mnt/ephemeral/workdir/aspect-build/rules_py/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

@@+uv+pypi//:all_whl_requirements failed to build

error loading package '@@+uv+pypi//': at /mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6:
compilation of module 'py/private/link/defs.bzl' failed

//py:defs.doc_extract failed to build

in src attribute of starlark_doc_extract rule //py:defs.doc_extract: at
/mnt/ephemeral/workdir/aspect-build/rules_py/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed. Since this rule was created by the macro 'bzl_library', the error might
have been caused by the macro implementation

💡 To reproduce the build failures, run

bazel build @@+uv+venv__pypi__default//cowsay:cowsay @@+uv+pypi//:all_whl_requirements //py:defs.doc_extract

test-os:linux-bzl:8 (Test)

e2e

⚠️ Buildkite build #1331 failed.

@@aspect_rules_py++uv+venv__pypi__say//cowsay:cowsay failed to build

error loading package '@@aspect_rules_py++uv+venv__pypi__say//cowsay': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

@@+_repo_rules2+subrepo_a//:foo failed to build

error loading package '@@+_repo_rules2+subrepo_a//': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

@@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow:apache_airflow failed to build

error loading package '@@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

💡 To reproduce the build failures, run

bazel build @@aspect_rules_py++uv+venv__pypi__say//cowsay:cowsay @@+_repo_rules2+subrepo_a//:foo @@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow:apache_airflow

test-os:linux-bzl:latest (Test)

e2e

⚠️ Buildkite build #1331 failed.

@@aspect_rules_py++uv+venv__pypi__say//cowsay:cowsay failed to build

error loading package '@@aspect_rules_py++uv+venv__pypi__say//cowsay': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

@@+_repo_rules2+subrepo_a//:foo failed to build

error loading package '@@+_repo_rules2+subrepo_a//': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

@@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow:apache_airflow failed to build

error loading package '@@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow': at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/uv/private/defs.bzl:4:6: at
/mnt/ephemeral/output/rules_py/e2e/external/aspect_rules_py+/py/defs.bzl:45:6: compilation of module
'py/private/link/defs.bzl' failed

💡 To reproduce the build failures, run

bazel build @@aspect_rules_py++uv+venv__pypi__say//cowsay:cowsay @@+_repo_rules2+subrepo_a//:foo @@aspect_rules_py++uv+venv__pypi__airflow//apache_airflow:apache_airflow

test-os:linux-bzl:8 (Test)

examples/uv_pip_compile

All tests were cache hits

1 test (100.0%) was fully cached saving 335ms.


test-os:linux-bzl:latest (Test)

examples/uv_pip_compile

All tests were cache hits

1 test (100.0%) was fully cached saving 335ms.

@MohitBhar
Copy link

Hi @arrdem this fixes the ModuleNotFoundError. However, with this fix, jumping to the definition of an internal library doesn't work in VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants