diff --git a/deno-disable-update-check.patch b/deno-disable-update-check.patch new file mode 100644 index 0000000..8204635 --- /dev/null +++ b/deno-disable-update-check.patch @@ -0,0 +1,18 @@ +diff --git a/cli/tools/run.rs.1 b/cli/tools/run.rs +index 99312d5..e733306 100644 +--- a/cli/tools/run.rs.1 ++++ b/cli/tools/run.rs +@@ -38,13 +38,6 @@ To grant permissions, set them before the script argument. For example: + let http_client = factory.http_client(); + let cli_options = factory.cli_options(); + +- // Run a background task that checks for available upgrades. If an earlier +- // run of this background task found a new version of Deno. +- super::upgrade::check_for_upgrades( +- http_client.clone(), +- deno_dir.upgrade_check_file_path(), +- ); +- + let main_module = cli_options.resolve_main_module()?; + + let permissions = PermissionsContainer::new(Permissions::from_options( diff --git a/deno.changes b/deno.changes index 2ce59d4..3e0cbbf 100644 --- a/deno.changes +++ b/deno.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 17 19:57:07 UTC 2023 - Avindra Goolcharan + +- add deno-disable-update-check.patch + * this stops deno from automatically checking for an update + whenever a script is run + ------------------------------------------------------------------- Fri May 12 17:08:12 UTC 2023 - Avindra Goolcharan diff --git a/deno.spec b/deno.spec index b7adbe9..3e43c24 100644 --- a/deno.spec +++ b/deno.spec @@ -29,6 +29,7 @@ Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config Source99: revendor_source.sh +Patch0: deno-disable-update-check.patch # PATCH-FIX-OPENSUSE - Disable LTO (to reduce req memory) %ifarch %{arm} aarch64 Patch1: deno-disable-lto.patch