Support executable wrappers in `uv_toolchain`
还没有人认领这个 Issue。
评估
这个 Issue 还没有评估数据。
描述
🚀 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.
- 主要语言
- Starlark
- 星标
- 690
- 派生
- 722
- 平均合并
- 1 天 55 分钟
- 30 天内合并 PR
- 38
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bazel-contrib/rules_python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
bazel-contrib/rules_python#4164 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
bazel-contrib/rules_python#3821 ·
-
bazel-contrib/rules_python#4179 ·
-
Release 2.4.0 未关闭type: release
难度 4/5 3-5 天 新手友好度 25/100
bazel-contrib/rules_python#4175 · 3 条评论 ·
-
Release 2.3.4 未关闭type: release
难度 2/5 1-3 小时 新手友好度 35/100
bazel-contrib/rules_python#4173 · 2 条评论 ·