1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| | This patch makes the `gatherer` component of `mission-center' use the nvtop
sources provided as a `gexp` artifact instead of fetching the sources at
build-time.
diff --git a/src/sys_info_v2/gatherer/build/build.rs b/src/sys_info_v2/gatherer/build/build.rs
index 3c287ee..f0af0ff 100644
--- a/src/sys_info_v2/gatherer/build/build.rs
+++ b/src/sys_info_v2/gatherer/build/build.rs
@@ -60,11 +60,7 @@ fn prepare_third_party_sources() -> Result<Vec<std::path::PathBuf>, Box<dyn std:
break;
}
- let output_path = util::download_file(
- &package.source_url,
- &format!("{}", out_dir.display()),
- Some(&package.source_hash),
- )?;
+ let output_path = std::env::var("CARGO_MANIFEST_DIR")? + "/../../../../nvtop.tar.gz";
let mut archive = std::fs::File::open(&output_path)?;
let tar = flate2::read::GzDecoder::new(&mut archive);
|