Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support executable wrappers in `uv_toolchain`

Đang mở
#4,181 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Starlark
Star
690
Fork
722
Merge trung bình
1 ngày 55 phút
Pull request đã merge (30 ngày)
38

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bazel-contrib/rules_python

Tất cả issue của bazel-contrib/rules_python

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.