Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
project::update_environment
to respect reinstall options (#4502
) While working on #4492 I noticed that `--reinstall-package` was not actually respected by `update_environment`, it exited early due to satisfied requirements. Before ``` ❯ cargo run -q -- tool install black -v --reinstall-package tomli ... DEBUG All requirements satisfied: black | click>=8.0.0 | mypy-extensions>=0.4.3 | packaging>=22.0 | pathspec>=0.9.0 | platformdirs>=2 | tomli>=1.1.0 ; python_version < '3.11' | typing-extensions>=4.0.1 ; python_version < '3.11' ``` After ``` ❯ cargo run -q -- tool install black -v --reinstall-package tomli ... Uninstalled 1 package in 0.99ms Installed 1 package in 4ms - tomli==2.0.1 + tomli==2.0.1 ```
- Loading branch information