Skip to content

Commit

Permalink
chore: disable deno update check
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Dec 11, 2024
1 parent 76e6b88 commit 2dc374e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/toolchain/cli/src/commands/deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl Opts {

let mut cmd = tokio::process::Command::new(&deno.executable_path);
cmd.args(&self.args)
.env("DENO_NO_UPDATE_CHECK", "1")
.stdin(std::process::Stdio::inherit())
.stdout(std::process::Stdio::inherit())
.stderr(std::process::Stdio::inherit());
Expand Down
1 change: 1 addition & 0 deletions packages/toolchain/js-utils-embed/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async fn main() -> Result<()> {

// Prepare the directory for `include_dir!`
let status = Command::new(&deno_exec.executable_path)
.env("DENO_NO_UPDATE_CHECK", "1")
.arg("task")
.arg("prepare")
// Deno runs out of memory on Windows
Expand Down
1 change: 1 addition & 0 deletions packages/toolchain/toolchain/src/tasks/deploy/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ async fn deno_check_script(opts: CheckOpts<'_>) -> Result<()> {

let mut check_cmd = Command::new(&deno_exec.executable_path);
check_cmd.current_dir(&paths::project_root()?);
check_cmd.env("DENO_NO_UPDATE_CHECK", "1");
check_cmd.arg("check");
if let Some(config_path) = &opts.config_path {
check_cmd.arg(format!("--config={config_path}"));
Expand Down
4 changes: 3 additions & 1 deletion packages/toolchain/toolchain/src/util/js_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ pub async fn build_backend_command_raw(opts: CommandOpts) -> Result<CommandRaw>
let input_json = serde_json::to_string(&opts.input)?;

// Run backend
let mut envs = opts.env;
envs.insert("DENO_NO_UPDATE_CHECK".into(), "1".into());
Ok(CommandRaw {
command: deno.executable_path,
args: vec![
Expand All @@ -66,7 +68,7 @@ pub async fn build_backend_command_raw(opts: CommandOpts) -> Result<CommandRaw>
"--input".into(),
input_json,
],
envs: opts.env,
envs,
current_dir: paths::project_root()?,
})
}
Expand Down

0 comments on commit 2dc374e

Please sign in to comment.