Accepting request 1146293 from devel:languages:javascript

bumped mem limit to 21GB

OBS-URL: https://build.opensuse.org/request/show/1146293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deno?expand=0&rev=37
This commit is contained in:
Ana Guerrero 2024-02-13 21:43:20 +00:00 committed by Git OBS Bridge
commit 7b94bee4c4
9 changed files with 141 additions and 37 deletions

View File

@ -9,7 +9,7 @@
<size unit="G">18</size>
</disk>
<physicalmemory>
<size unit="G">12</size>
<size unit="G">21</size>
</physicalmemory>
</hardware>
</constraints>

View File

@ -13,8 +13,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/deno</param>
<param name="revision">v1.38.2</param>
<param name="version">1.38.2</param>
<param name="revision">v1.40.4</param>
<param name="version">1.40.4</param>
<!-- remove large docs -->
<param name="exclude">docs</param>
@ -37,8 +37,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/rusty_v8</param>
<param name="revision">v0.81.0</param>
<param name="version">0.81.0</param>
<param name="revision">v0.83.1</param>
<param name="version">0.83.1</param>
<param name="exclude">.github</param>
<!--

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:447690bd19b3a9a804ccc9ebdf31b3e30239092d5fe85a1dd87b08498122045b
size 3808196

3
deno-1.40.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ea6c91c3876e8a4fc0f60aee35e76c318dc3f115dcb7db66d04bdfe488a6beb
size 4098968

View File

@ -2,12 +2,13 @@ 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
@@ -45,13 +45,6 @@ To grant permissions, set them before the script argument. For example:
let http_client = factory.http_client();
let cli_options = factory.cli_options();
@@ -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(),
@ -20,12 +21,13 @@ 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
@@ -580,8 +580,6 @@ static ENV_VARIABLES_HELP: &str = r#"ENVIRONMENT VARIABLES:
DENO_NO_PACKAGE_JSON Disables auto-resolution of package.json
DENO_NO_PROMPT Set to disable permission prompts on access
@@ -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)
- DENO_NO_UPDATE_CHECK Set to disable checking if a newer Deno version is
- <g>DENO_NO_UPDATE_CHECK</> Set to disable checking if a newer Deno version is
- available
DENO_V8_FLAGS Set V8 command line options
DENO_JOBS Number of parallel workers used for the --parallel
flag with the test subcommand. Defaults to number
-
<g>DENO_V8_FLAGS</> Set V8 command line options
<g>DENO_WEBGPU_TRACE</> Directory to use for wgpu traces

View File

@ -2,13 +2,19 @@ diff --git a/cli/main.rs.1 b/cli/main.rs
index 031ab07..4f3b05c 100644
--- a/cli/main.rs.1
+++ b/cli/main.rs
@@ -204,9 +204,6 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> {
let types = tsc::get_types_declaration_file_text(flags.unstable);
@@ -202,15 +202,6 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> {
let types = tsc::get_types_declaration_file_text();
display::write_to_stdout_ignore_sigpipe(types.as_bytes())
}),
- #[cfg(feature = "upgrade")]
- DenoSubcommand::Upgrade(upgrade_flags) => spawn_subcommand(async {
- tools::upgrade::upgrade(flags, upgrade_flags).await
- }),
- #[cfg(not(feature = "upgrade"))]
- DenoSubcommand::Upgrade(_) => exit_with_message(
- "This deno was built without the \"upgrade\" feature. Please upgrade using the installation method originally used to install Deno.",
- 1,
- ),
DenoSubcommand::Vendor(vendor_flags) => spawn_subcommand(async {
tools::vendor::vendor(flags, vendor_flags).await
}),
@ -16,32 +22,48 @@ diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
index 72841df..1c93da1 100644
--- a/cli/args/flags.rs.1
+++ b/cli/args/flags.rs
@@ -292,7 +292,6 @@ pub enum DenoSubcommand {
@@ -281,15 +281,6 @@ pub struct TestFlags {
pub junit_path: Option<String>,
}
-#[derive(Clone, Debug, Eq, PartialEq)]
-pub struct UpgradeFlags {
- pub dry_run: bool,
- pub force: bool,
- pub canary: bool,
- pub version: Option<String>,
- pub output: Option<PathBuf>,
-}
-
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct VendorFlags {
pub specifiers: Vec<String>,
@@ -328,7 +319,6 @@ pub enum DenoSubcommand {
Task(TaskFlags),
Test(TestFlags),
Types,
- Upgrade(UpgradeFlags),
Vendor(VendorFlags),
Publish(PublishFlags),
}
@@ -686,7 +685,7 @@ impl Flags {
@@ -760,7 +750,7 @@ impl Flags {
std::env::current_dir().ok()
}
Bundle(_) | Completions(_) | Doc(_) | Fmt(_) | Init(_) | Install(_)
- | Uninstall(_) | Jupyter(_) | Lsp | Lint(_) | Types | Upgrade(_)
+ | Uninstall(_) | Jupyter(_) | Lsp | Lint(_) | Types
| Vendor(_) => None,
| Vendor(_) | Publish(_) => None,
}
}
@@ -836,7 +835,6 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
@@ -944,7 +934,6 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
"test" => test_parse(&mut flags, &mut m),
"types" => types_parse(&mut flags, &mut m),
"uninstall" => uninstall_parse(&mut flags, &mut m),
- "upgrade" => upgrade_parse(&mut flags, &mut m),
"vendor" => vendor_parse(&mut flags, &mut m),
"publish" => publish_parse(&mut flags, &mut m),
_ => unreachable!(),
}
@@ -937,7 +935,6 @@ fn clap_root() -> Command {
@@ -1099,7 +1088,6 @@ fn clap_root() -> Command {
.subcommand(task_subcommand())
.subcommand(test_subcommand())
.subcommand(types_subcommand())
@ -49,7 +71,7 @@ index 72841df..1c93da1 100644
.subcommand(vendor_subcommand())
})
.long_about(DENO_HELP)
@@ -2037,59 +2034,6 @@ The declaration file could be saved and used for typing information.",
@@ -2262,61 +2250,6 @@ The declaration file could be saved and used for typing information.",
)
}
@ -69,6 +91,7 @@ index 72841df..1c93da1 100644
-
- deno upgrade --output $HOME/my_deno",
- )
- .hide(cfg!(not(feature = "upgrade")))
- .defer(|cmd| {
- cmd
- .arg(
@ -80,6 +103,7 @@ index 72841df..1c93da1 100644
- Arg::new("output")
- .long("output")
- .help("The path to output the updated version to")
- // todo(dsherret): remove value_parser!(PathBuf) and instead parse as string
- .value_parser(value_parser!(PathBuf))
- .value_hint(ValueHint::FilePath),
- )
@ -109,7 +133,7 @@ index 72841df..1c93da1 100644
fn vendor_subcommand() -> Command {
Command::new("vendor")
.about("Vendor remote modules into a local directory")
@@ -3453,23 +3397,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
@@ -3785,23 +3718,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
flags.subcommand = DenoSubcommand::Types;
}
@ -133,7 +157,7 @@ index 72841df..1c93da1 100644
fn vendor_parse(flags: &mut Flags, matches: &mut ArgMatches) {
ca_file_arg_parse(flags, matches);
config_args_parse(flags, matches);
@@ -3886,25 +3813,6 @@ mod tests {
@@ -4251,25 +4167,6 @@ mod tests {
assert_eq!(flags2, flags);
}
@ -159,7 +183,7 @@ index 72841df..1c93da1 100644
#[test]
fn version() {
let r = flags_from_vec(svec!["deno", "--version"]);
@@ -7086,25 +6994,6 @@ mod tests {
@@ -7509,25 +7406,6 @@ mod tests {
);
}
@ -185,3 +209,72 @@ index 72841df..1c93da1 100644
#[test]
fn cache_with_cafile() {
let r = flags_from_vec(svec![
diff --git a/cli/tools/mod.rs.1 b/cli/tools/mod.rs
index 4593092..3247915 100644
--- a/cli/tools/mod.rs.1
+++ b/cli/tools/mod.rs
@@ -17,5 +17,4 @@ pub mod repl;
pub mod run;
pub mod task;
pub mod test;
-pub mod upgrade;
pub mod vendor;
diff --git a/cli/standalone/binary.rs.1 b/cli/standalone/binary.rs
index 628922b..f8bb1e2 100644
--- a/cli/standalone/binary.rs.1
+++ b/cli/standalone/binary.rs
@@ -429,11 +429,7 @@ impl<'a> DenoCompileBinaryWriter<'a> {
let archive_data = std::fs::read(binary_path)?;
let temp_dir = tempfile::TempDir::new()?;
- let base_binary_path = crate::tools::upgrade::unpack_into_dir(
- archive_data,
- target.contains("windows"),
- &temp_dir,
- )?;
+ let base_binary_path = "/tmp";
let base_binary = std::fs::read(base_binary_path)?;
drop(temp_dir); // delete the temp dir
Ok(base_binary)
diff --git a/cli/lsp/language_server.rs.1 b/cli/lsp/language_server.rs
index 573fb1e..158c136 100644
--- a/cli/lsp/language_server.rs.1
+++ b/cli/lsp/language_server.rs
@@ -119,8 +119,6 @@ use crate::npm::CliNpmResolverManagedPackageJsonInstallerOption;
use crate::npm::CliNpmResolverManagedSnapshotOption;
use crate::tools::fmt::format_file;
use crate::tools::fmt::format_parsed_source;
-use crate::tools::upgrade::check_for_upgrades_for_lsp;
-use crate::tools::upgrade::upgrade_check_enabled;
use crate::util::fs::remove_dir_all_if_exists;
use crate::util::path::is_importable_ext;
use crate::util::path::specifier_to_file_path;
@@ -3335,28 +3333,6 @@ impl tower_lsp::LanguageServer for LanguageServer {
ls.task_queue.start(self.clone());
};
- if upgrade_check_enabled() {
- // spawn to avoid lsp send/sync requirement, but also just
- // to ensure this initialized method returns quickly
- spawn(async move {
- match check_for_upgrades_for_lsp(http_client).await {
- Ok(version_info) => {
- client.send_did_upgrade_check_notification(
- lsp_custom::DidUpgradeCheckNotificationParams {
- upgrade_available: version_info.map(|info| {
- lsp_custom::UpgradeAvailable {
- latest_version: info.latest_version,
- is_canary: info.is_canary,
- }
- }),
- },
- );
- }
- Err(err) => lsp_warn!("Failed to check for upgrades: {err}"),
- }
- });
- }
-
lsp_log!("Server ready.");
}

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Feb 9 04:26:49 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>
- update to 1.40.4:
* see https://deno.com/blog/v1.39
* see https://deno.com/blog/v1.40
- rebase deno-disable-update-check.patch
- rebase deno-rm-upgrade-cmd.patch
-------------------------------------------------------------------
Fri Nov 17 20:58:39 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>

View File

@ -1,9 +1,9 @@
#
# spec file for package deno
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2023 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2023 the Deno authors
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2020-2024 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2024 the Deno authors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
Name: deno
Version: 1.38.2
Version: 1.40.4
Release: 0
Summary: A secure JavaScript and TypeScript runtime
License: MIT

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2ba87e096d1dc67119d3c6004d535ad1bfba9294c627e7ef07696cdac4f0188
size 76636764
oid sha256:c2b88153d4878538e14b6f564b9fa44c5b52f7a7cf5574c556a85d52f27b93dd
size 94892156