Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/windmill-worker/src/rust_executor.rs b/windmill-worker/src/rust_executor.rs 2index 95fd82210..ed7b298e1 100644 3--- a/windmill-worker/src/rust_executor.rs 4+++ b/windmill-worker/src/rust_executor.rs 5@@ -29,7 +29,7 @@ use crate::SYSTEM_ROOT; 6 const NSJAIL_CONFIG_RUN_RUST_CONTENT: &str = include_str!("../nsjail/run.rust.config.proto"); 7 8 lazy_static::lazy_static! { 9- static ref HOME_DIR: String = std::env::var("HOME").expect("Could not find the HOME environment variable"); 10+ static ref HOME_DIR: String = std::env::var("HOME").unwrap_or_else(|_| format!("{}/cargo", windmill_common::worker::ROOT_CACHE_DIR)); 11 static ref CARGO_HOME: String = std::env::var("CARGO_HOME").unwrap_or_else(|_| { CARGO_HOME_DEFAULT.clone() }); 12 static ref RUSTUP_HOME: String = std::env::var("RUSTUP_HOME").unwrap_or_else(|_| { RUSTUP_HOME_DEFAULT.clone() }); 13 static ref CARGO_PATH: String = std::env::var("CARGO_PATH").unwrap_or_else(|_| format!("{}/bin/cargo", CARGO_HOME.as_str()));