Reframe --locked and --frozen as --check operations for uv lock (#9662)

Closes https://github.com/astral-sh/uv/issues/7639
This commit is contained in:
Zanie Blue 2024-12-08 10:02:00 -06:00 committed by GitHub
parent 00a4adfc46
commit 84285b69e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 21 deletions

View file

@ -27,6 +27,14 @@ To avoid updating the environment during `uv run` invocations, use the `--no-syn
To assert the lockfile matches the project metadata, use the `--locked` flag. If the lockfile is not
up-to-date, an error will be raised instead of updating the lockfile.
You can also check if the lockfile is up-to-date by passing the `--check` flag to `uv lock`:
```console
$ uv lock --check
```
This is equivalent to the `--locked` flag for other commands.
### Upgrading locked package versions
By default, uv will prefer the locked versions of packages when running `uv sync` and `uv lock`.