From 3638f9a0bd69d995e95b600cce622148c860dbf2 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Mon, 8 Jan 2024 11:41:24 -0800 Subject: [PATCH] build.rs: always fetch --- build.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 30e3760f..ed316573 100644 --- a/build.rs +++ b/build.rs @@ -139,12 +139,11 @@ fn main() { let wit_dir = pwd.join("wit"); fs::create_dir_all(&wit_dir).unwrap(); let wit_file = wit_dir.join("uqbar.wit"); - if !wit_file.exists() { - let mut wit_file = std::fs::File::create(&wit_file).unwrap(); - let uqbar_wit_url = "https://raw.githubusercontent.com/uqbar-dao/uqwit/master/uqbar.wit"; - let mut response = reqwest::blocking::get(uqbar_wit_url).unwrap(); - io::copy(&mut response, &mut wit_file).unwrap(); - } + //if !wit_file.exists() { // TODO: cache in better way + let mut wit_file = std::fs::File::create(&wit_file).unwrap(); + let uqbar_wit_url = "https://raw.githubusercontent.com/uqbar-dao/uqwit/master/uqbar.wit"; + let mut response = reqwest::blocking::get(uqbar_wit_url).unwrap(); + io::copy(&mut response, &mut wit_file).unwrap(); // Create target.wasm (compiled .wit) & world run_command(Command::new("wasm-tools").args([