Skip to content

Commit 1b6638f

Browse files
authored
(doc) Fix wrong examples for locking (#7120)
## Summary The examples for compile with optional dependencies use `uv pip install` instead of `uv pip compile` (probably a copy-paste error) ## Test Plan N/A This is a minor doc issue. The result is directly rendered.
1 parent 346147d commit 1b6638f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pip/compile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ $ echo "ruff" | uv pip compile -
4949
To lock with optional dependencies enabled, e.g., the "foo" extra:
5050

5151
```console
52-
$ uv pip install -r pyproject.toml --extra foo
52+
$ uv pip compile pyproject.toml --extra foo
5353
```
5454

5555
To lock with all optional dependencies enabled:
5656

5757
```console
58-
$ uv pip install -r pyproject.toml --all-extras
58+
$ uv pip compile pyproject.toml --all-extras
5959
```
6060

6161
Note extras are not supported with the `requirements.in` format.

0 commit comments

Comments
 (0)