From 1b6638fdb424e993d8354e75c55a3e524050c857 Mon Sep 17 00:00:00 2001 From: Carlos Pascual Date: Fri, 6 Sep 2024 15:21:54 +0200 Subject: [PATCH] (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. --- docs/pip/compile.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pip/compile.md b/docs/pip/compile.md index c99d9243b..95731254b 100644 --- a/docs/pip/compile.md +++ b/docs/pip/compile.md @@ -49,13 +49,13 @@ $ echo "ruff" | uv pip compile - To lock with optional dependencies enabled, e.g., the "foo" extra: ```console -$ uv pip install -r pyproject.toml --extra foo +$ uv pip compile pyproject.toml --extra foo ``` To lock with all optional dependencies enabled: ```console -$ uv pip install -r pyproject.toml --all-extras +$ uv pip compile pyproject.toml --all-extras ``` Note extras are not supported with the `requirements.in` format.