mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
fix: expose DISABLE_DENO_LOCK
This commit is contained in:
@@ -46,8 +46,10 @@ lazy_static::lazy_static! {
|
||||
|
||||
static ref DENO_CERT: String = std::env::var("DENO_CERT").ok().unwrap_or_else(|| String::new());
|
||||
static ref DENO_TLS_CA_STORE: String = std::env::var("DENO_TLS_CA_STORE").ok().unwrap_or_else(|| String::new());
|
||||
static ref DISABLE_DENO_LOCK: bool = std::env::var("DISABLE_DENO_LOCK").is_ok();
|
||||
|
||||
}
|
||||
|
||||
async fn get_common_deno_proc_envs(
|
||||
token: &str,
|
||||
base_internal_url: &str,
|
||||
@@ -352,13 +354,17 @@ try {{
|
||||
args.push("--unstable-fs");
|
||||
args.push("--unstable-worker-options");
|
||||
args.push("--unstable-http");
|
||||
if let Some(reqs) = requirements_o {
|
||||
if !reqs.is_empty() {
|
||||
let _ = write_file(job_dir, "lock.json", &reqs)?;
|
||||
args.push("--lock=lock.json");
|
||||
args.push("--frozen=false");
|
||||
|
||||
if !*DISABLE_DENO_LOCK {
|
||||
if let Some(reqs) = requirements_o {
|
||||
if !reqs.is_empty() {
|
||||
let _ = write_file(job_dir, "lock.json", &reqs)?;
|
||||
args.push("--lock=lock.json");
|
||||
args.push("--frozen=false");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let allow_read = format!(
|
||||
"--allow-read=./,/tmp/windmill/cache/deno/,{}",
|
||||
DENO_PATH.as_str()
|
||||
|
||||
Reference in New Issue
Block a user