Skip to content

Commit

Permalink
Update project::update_environment to respect reinstall options
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jun 25, 2024
1 parent 10ec9c9 commit 9e07261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv/src/commands/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pub(crate) async fn update_environment(

// Check if the current environment satisfies the requirements
let site_packages = SitePackages::from_executable(&venv)?;
if spec.source_trees.is_empty() {
if spec.source_trees.is_empty() && reinstall.is_none() {
match site_packages.satisfies(&spec.requirements, &spec.constraints)? {
// If the requirements are already satisfied, we're done.
SatisfiesResult::Fresh {
Expand Down

0 comments on commit 9e07261

Please sign in to comment.