astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
25.4k stars 739 forks source link

`find-links` TOML parse error: expected `Path` or `Url` #3617

Closed masonkirchner closed 5 months ago

masonkirchner commented 5 months ago

Hey team, I have the following uv.toml file:

[pip]
find-links = ["file:///home/mkirchner/development/"]

When I try to run uv pip compile requirements.in I get the following error:

error: Failed to parse `uv.toml`
  Caused by: TOML parse error at line 2, column 15
  |
2 | find-links = ["file:///home/mkirchner/development/"]
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unknown variant `file:///home/mkirchner/development/`, expected `Path` or `Url`

I'm not exactly sure if this is a bug in the parsing or user error on my end, but regardless I can't get it to work. I cannot find much documentation about the uv.toml file. Any ideas?

charliermarsh commented 5 months ago

I suspect it's just a bug. Will take a look!

charliermarsh commented 5 months ago

Sorry about that, fixed here: https://github.com/astral-sh/uv/pull/3619