summaryrefslogtreecommitdiff
path: root/yarn-offline.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-07 07:31:59 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-07 07:31:59 +0000
commitb89039c5688ab75fffa3d806119eb053cc326660 (patch)
tree4f81cc86bdbf24a6bf6ea840db44c2ca4b21cf23 /yarn-offline.patch
parentfa9c0e08315a612470ef72ca5ac658663634f408 (diff)
automatic import of vscodium
Diffstat (limited to 'yarn-offline.patch')
-rw-r--r--yarn-offline.patch34
1 files changed, 34 insertions, 0 deletions
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');