-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,8 +136,8 @@ pub(crate) fn download_distribution( | |
debug!("Downloading wheel to {}", target_file.display()); | ||
fs::create_dir_all(target_dir).context("Couldn't create cache dir")?; | ||
// temp file so we don't clash with other processes running in parallel | ||
let mut temp_file = tempfile::NamedTempFile::new_in(target_dir) | ||
.context("Couldn't create file for download")?; | ||
let mut temp_file = | ||
tempfile::NamedTempFile::new_in(target_dir).context("Couldn't create file for download")?; | ||
let request_for_file = ureq::get(url) | ||
.set("User-Agent", "monotrail ([email protected])") | ||
.call() | ||
|