astral-sh/uv
Auf GitHub ansehenShow a better error when a uv lockfile is used in `-r`
Open
#16.192 geöffnet am 8. Okt. 2025
error messageshelp wanted
Beschreibung
e.g., if you try to use uv lock --script action.py then -r action.py.lock
error: Couldn't parse requirement in `action.py.lock` at position 0
Caused by: no such comparison operator "=", must be one of ~= == != <= >= < > ===
version = 1
^^^
We can do better by detecting our own lockfile format