From b89039c5688ab75fffa3d806119eb053cc326660 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 7 Aug 2024 07:31:59 +0000 Subject: automatic import of vscodium --- yarn-offline.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 yarn-offline.patch (limited to 'yarn-offline.patch') diff --git a/yarn-offline.patch b/yarn-offline.patch new file mode 100644 index 0000000..965109b --- /dev/null +++ b/yarn-offline.patch @@ -0,0 +1,34 @@ +--- prepare_vscode.sh ++++ prepare_vscode.sh +@@ -78,9 +78,9 @@ if [[ "${OS_NAME}" == "linux" ]]; then + export npm_config_arm_version=7 + fi + +- CHILD_CONCURRENCY=1 yarn --frozen-lockfile --check-files --network-timeout 180000 ++ CHILD_CONCURRENCY=1 yarn --frozen-lockfile --check-files --offline + elif [[ "${OS_NAME}" == "osx" ]]; then +- CHILD_CONCURRENCY=1 yarn --frozen-lockfile --network-timeout 180000 ++ CHILD_CONCURRENCY=1 yarn --frozen-lockfile --offline + + yarn postinstall + else +@@ -105,7 +105,7 @@ else + export npm_config_arm_version=7 + fi + +- CHILD_CONCURRENCY=1 yarn --frozen-lockfile --check-files --network-timeout 180000 ++ CHILD_CONCURRENCY=1 yarn --frozen-lockfile --check-files --offline + fi + + setpath() { +--- vscode/build/npm/postinstall.js.orig 2024-08-07 09:57:47.195493488 +0800 ++++ vscode/build/npm/postinstall.js 2024-08-07 10:02:27.794019375 +0800 +@@ -42,7 +42,7 @@ + const raw = process.env['npm_config_argv'] || '{}'; + const argv = JSON.parse(raw); + const original = argv.original || []; +- const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile' || arg === '--check-files'); ++ const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile' || arg === '--check-files').concat(['--offline']); + + if (opts.ignoreEngines) { + args.push('--ignore-engines'); -- cgit v1.2.3