Skip to content

Commit

Permalink
Merge pull request #661 from hermit-os/dependabot/cargo/ureq-3.0
Browse files Browse the repository at this point in the history
build(deps): update ureq from 2.4 to 3
  • Loading branch information
mkroening authored Jan 28, 2025
2 parents 57136dc + e10481f commit 39f54ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hermit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ vsock = []
[build-dependencies]
cc = "1"
flate2 = "1"
ureq = "2.4"
ureq = "3"
tar = "0.4"
6 changes: 5 additions & 1 deletion hermit/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ impl KernelSrc {
if !src_dir.exists() {
let url =
format!("https://github.com/hermit-os/kernel/archive/refs/tags/v{version}.tar.gz");
let response = ureq::get(url.as_str()).call().unwrap().into_reader();
let response = ureq::get(url.as_str())
.call()
.unwrap()
.into_body()
.into_reader();
let tar = GzDecoder::new(response);
let mut archive = Archive::new(tar);
archive.unpack(src_dir.parent().unwrap()).unwrap();
Expand Down

0 comments on commit 39f54ad

Please sign in to comment.