document --reinstall with --exclude-newer to ensure downgrades (#6721)

fixes #6676
This commit is contained in:
David Szotten 2024-10-10 00:03:31 +01:00 committed by GitHub
parent 1c5309080b
commit 7b9b690b02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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