Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Support executable wrappers in `uv_toolchain`

Abierto
#4,181 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

The issue points to uv_toolchain.bzl and lock.bzl. Start by reading those files to understand how the uv executable is currently handled. Look for the uv_toolchain rule definition and the lock rule's action generation. The goal is to modify the toolchain to accept wrappers with multiple outputs and ensure runfiles are preserved. Check how the downloaded uv binary is exposed and how runfiles are collected in Bazel actions. A test involving a wrapper script with credentials would verify the changes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

🚀 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.

Lenguaje dominante
Starlark
Estrellas
690
Forks
722
Merge medio
1 d 55 min
PR fusionados (30 d)
38

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bazel-contrib/rules_python

Todos los issues de bazel-contrib/rules_python

Issues similares

Más issues de Build System

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.