diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-07 07:31:59 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-07 07:31:59 +0000 |
commit | b89039c5688ab75fffa3d806119eb053cc326660 (patch) | |
tree | 4f81cc86bdbf24a6bf6ea840db44c2ca4b21cf23 /yarn-offline.patch | |
parent | fa9c0e08315a612470ef72ca5ac658663634f408 (diff) |
automatic import of vscodium
Diffstat (limited to 'yarn-offline.patch')
-rw-r--r-- | yarn-offline.patch | 34 |
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'); |