Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support executable wrappers in `uv_toolchain`

Open
#4,181 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

🚀 feature request

Relevant Rules

uv_toolchain and lock.

Description

I want to use a custom uv wrapper with the lock rule. In my case, the wrapper would obtain credentials and set index authentication variables before calling the pinned uv binary.

There are a couple of issues right now. First, uv_toolchain rejects executable targets with multiple output files. Second, lock forwards the executable without preserving its runfiles, which limits wrappers that depend on runtime files or symlinks.

Describe the solution you'd like

Allow uv_toolchain to accept executable wrappers with multiple output files. Preserve their runfiles, including ordinary symlinks and root symlinks, in both lock build actions and .run targets.

Export the downloaded uv binary with public visibility so wrappers can declare it as a runtime dependency.

I'll open a PR for this in a bit.

Describe alternatives you've considered

Patching rules_python.

Dominant language
Starlark
Stars
690
Forks
722
Avg merge
1d 55m
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazel-contrib/rules_python

All issues in bazel-contrib/rules_python

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.