From df2ebf74d088be7b5876f06593c386f1f74e52aa Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 19 Aug 2024 12:52:52 -0500 Subject: [PATCH] Document yanked packages caveat during sync (#6219) Closes https://github.com/astral-sh/uv/issues/5928 --- crates/uv-cli/src/lib.rs | 3 +++ docs/reference/cli.md | 2 ++ 2 files changed, 5 insertions(+) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index b4fd5cdf1..0a0ef5fce 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -609,6 +609,9 @@ pub enum ProjectCommand { /// /// uv will search for a project in the current directory or any parent /// directory. If a project cannot be found, uv will exit with an error. + /// + /// Note that, when installing from a lockfile, uv will not provide warnings for yanked package + /// versions. #[command( after_help = "Use `uv help sync` for more details.", after_long_help = "" diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 92598e18a..1141e21fb 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -1007,6 +1007,8 @@ The project is re-locked before syncing unless the `--locked` or `--frozen` flag uv will search for a project in the current directory or any parent directory. If a project cannot be found, uv will exit with an error. +Note that, when installing from a lockfile, uv will not provide warnings for yanked package versions. +

Usage

```