FreeBSD Bugzilla – Attachment 234950 Details for
Bug 242936
editors/vscode: Fails to build: yarn attempts to fetch dependency in offline mode (typscript)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix build on base system with ${LOCALBASE}/share/.yarnrc existing
vscode-use-yarnrc.diff (text/plain), 1.05 KB, created by
Stefan Eßer
on 2022-06-26 11:42:43 UTC
(
hide
)
Description:
Fix build on base system with ${LOCALBASE}/share/.yarnrc existing
Filename:
MIME Type:
Creator:
Stefan Eßer
Created:
2022-06-26 11:42:43 UTC
Size:
1.05 KB
patch
obsolete
>diff --git a/editors/vscode/files/patch-build_npm_postinstall.js b/editors/vscode/files/patch-build_npm_postinstall.js >index 9013734a9ffb..043ff0752c43 100644 >--- a/editors/vscode/files/patch-build_npm_postinstall.js >+++ b/editors/vscode/files/patch-build_npm_postinstall.js >@@ -1,12 +1,13 @@ > --- build/npm/postinstall.js.orig 2022-06-08 11:20:55 UTC > +++ build/npm/postinstall.js >-@@ -20,7 +20,8 @@ function yarnInstall(location, opts) { >+@@ -20,7 +20,9 @@ function yarnInstall(location, opts) { > 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 passargs = ['--ignore-optional', '--frozen-lockfile', '--check-files', '--offline', '--no-progress', '--verbose']; > + const args = original.filter(arg => passargs.includes(arg)); >++ args.push('--use-yarnrc=../.yarnrc') > if (opts.ignoreEngines) { > args.push('--ignore-engines'); > delete opts.ignoreEngines;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242936
:
210277
|
210325
|
234950
|
234951