Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
dmenv install: use pip with --upgrade option
Browse files Browse the repository at this point in the history
This makes packages that have a git URL in the `requirements.lock`
file to be updated, even if the version number does not change.

See pypa/pip#2837 for details
  • Loading branch information
dmerejkowsky committed Nov 19, 2018
1 parent c353644 commit c881df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/venv_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl VenvManager {

fn install_from_lock(&self) -> Result<(), Error> {
let as_str = &self.paths.lock.to_string_lossy();
let args = vec!["install", "--requirement", as_str];
let args = vec!["install", "--requirement", as_str, "--upgrade"];
self.run_venv_cmd("pip", args)
}

Expand Down

0 comments on commit c881df4

Please sign in to comment.