astral-sh/uv

Show a better error when a uv lockfile is used in `-r`

Aberta

#16.192 aberto em 8 de out. de 2025

 (3 comentários) (4 reações) (0 responsável)Rust (3.111 forks)batch import
error messageshelp wanted

Métricas do repositório

Stars
 (84.934 estrelas)
Métricas de merge de PR
 (Mesclagem média 7d 16h) (259 fundiu PRs em 30d)

Description

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

Guia do colaborador