deno/deno-disable-update-check.patch

34 lines
1.2 KiB
Diff

diff --git a/cli/tools/run/mod.rs.1 b/cli/tools/run/mod.rs
index 4805ea7..57bb752 100644
--- a/cli/tools/run/mod.rs.1
+++ b/cli/tools/run/mod.rs
@@ -51,14 +51,6 @@ To grant permissions, set them before the script argument. For example:
);
}
- // Run a background task that checks for available upgrades or output
- // if an earlier run of this background task found a new version of Deno.
- #[cfg(feature = "upgrade")]
- super::upgrade::check_for_upgrades(
- http_client.clone(),
- deno_dir.upgrade_check_file_path(),
- );
-
let main_module = cli_options.resolve_main_module()?;
maybe_npm_install(&factory).await?;
diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
index fa28241..d6e2baa 100644
--- a/cli/args/flags.rs.1
+++ b/cli/args/flags.rs
@@ -835,9 +835,6 @@ static ENV_VARIABLES_HELP: &str = color_print::cstr!(
<g>DENO_NO_PROMPT</> Set to disable permission prompts on access
(alternative to passing --no-prompt on invocation)
- <g>DENO_NO_UPDATE_CHECK</> Set to disable checking if a newer Deno version is
- available
-
<g>DENO_V8_FLAGS</> Set V8 command line options
<g>DENO_WEBGPU_TRACE</> Directory to use for wgpu traces