From 7b9b690b02ee15161a3b1fda776cd3ff7a6408ea Mon Sep 17 00:00:00 2001 From: David Szotten Date: Thu, 10 Oct 2024 00:03:31 +0100 Subject: [PATCH] document --reinstall with --exclude-newer to ensure downgrades (#6721) fixes #6676 --- docs/concepts/resolution.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/concepts/resolution.md b/docs/concepts/resolution.md index 4e4583e82..77239e0df 100644 --- a/docs/concepts/resolution.md +++ b/docs/concepts/resolution.md @@ -357,6 +357,12 @@ To ensure reproducibility, messages for unsatisfiable resolutions will not menti distributions were excluded due to the `--exclude-newer` flag — newer distributions will be treated as if they do not exist. +!!! note + + The `--exclude-newer` option is only applied to packages that are read from a registry (as opposed to, e.g., Git + dependencies). Further, when using the `uv pip` interface, uv will not downgrade previously installed packages + unless the `--reinstall` flag is provided, in which case uv will perform a new resolution. + ## Source distribution [PEP 625](https://peps.python.org/pep-0625/) specifies that packages must distribute source