deno-disable-update-check.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=123
This commit is contained in:
Avindra Goolcharan 2023-05-17 20:00:36 +00:00 committed by Git OBS Bridge
parent 1492551126
commit 818c68f0ba
3 changed files with 26 additions and 0 deletions

View File

@ -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(

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 17 19:57:07 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- 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 <avindra@opensuse.org>

View File

@ -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