Skip to content

Commit

Permalink
fix: save file after lockfile is correctly updated (#555)
Browse files Browse the repository at this point in the history
`pixi add --pypi bla` would save `bla = "*"` to file but we obviously
don't want to add failing dependencies.
  • Loading branch information
ruben-arts authored Dec 11, 2023
1 parent 506dd16 commit 4a5f352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ pub async fn add_pypi_specs_to_project(
}
}
}
project.save()?;

update_lockfile(project, None, no_install, no_update_lockfile).await?;

project.save()?;

Ok(())
}

Expand Down

0 comments on commit 4a5f352

Please sign in to comment.