bazel-contrib / bazel-contrib/rules_uv

Missing find-links

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
29
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I am trying with below setup:
`bazel_dep(name = "rules_uv", version = "0.77.0")`

```
pip_compile(
name = "requirements.update",
extra_args = [
"--quiet",
"--index-strategy=unsafe-best-match",
],
requirements_in = "//:requirements.in",
requirements_txt = "//:requirements.txt",
tags = [
"local",
"no-remote-cache",
],
)
```

In the requirements.in, I have
```
-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
jax[cpu,cuda12_pip]==0.4.16

```

Before switching to use rules_uv, the rules_python/pip generated requirements.txt has this line at the top:

```
--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
```

but rules_uv generated requirements.txt misses this line. This makes bazel build complain about No matching distribution found for the jax version.

Contributor guide

Open the contributing guide

Research direction

Start with the pip_compile rule and compare the shown requirements.in input with the generated requirements.txt, checking how the -f entry is handled. Reproduce the Bazel setup, then verify that requirements.txt retains the --find-links URL and the build no longer reports No matching distribution found for the requested jax version.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.