Skip to content

feat: add support for uv environment variables #274

@albertocavalcante

Description

@albertocavalcante

The wish here would be to add support for inheriting / recognizing UV env vars as described at https://docs.astral.sh/uv/reference/environment

So, for example, I could have a

common --repo_env=UV_DEFAULT_INDEX=https://artifactory.corp.net/artifactory/api/pypi/pypi/simple

Inspirations from rules_go and gazelle:

https://github.com/bazel-contrib/bazel-gazelle/blob/0990b28954080252c89369d7a27176aee7381ab5/internal/go_repository.bzl#L220
https://github.com/bazel-contrib/rules_go/blob/7bf46c13dbb1556df1ca58cdd632b717670a3280/tests/bcr/go_tool_test.sh#L17
bazel-contrib/rules_go#3909

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions