astral-sh/uv

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

オープン

#16,192 opened on 2025/10/08

 (3 件のコメント) (4 件のリアクション) (0 人の担当者)Rust (3,111 件のフォーク)batch import
error messageshelp wanted

Repository metrics

Stars
 (84,934 個のスター)
PR merge metrics
 (平均マージ 7d 16h) (30d で 259 merged PRs)

説明

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

コントリビューターガイド