Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0231ffa

Browse filesBrowse files
jonahsniderrichardlau
authored andcommitted
build: add --without-corepack
PR-URL: #41060 Backport-PR-URL: #40479 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent cd20ecc commit 0231ffa
Copy full SHA for 0231ffa

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@
567567
dest='without_npm',
568568
help='do not install the bundled npm (package manager)')
569569

570+
parser.add_option('--without-corepack',
571+
action='store_true',
572+
dest='without_corepack',
573+
help='do not install the bundled Corepack')
574+
570575
# Dummy option for backwards compatibility
571576
parser.add_option('--without-report',
572577
action='store_true',
@@ -1066,6 +1071,7 @@ def configure_node(o):
10661071
o['variables']['OS'] = 'android'
10671072
o['variables']['node_prefix'] = options.prefix
10681073
o['variables']['node_install_npm'] = b(not options.without_npm)
1074+
o['variables']['node_install_corepack'] = b(not options.without_corepack)
10691075
o['variables']['debug_node'] = b(options.debug_node)
10701076
o['default_configuration'] = 'Debug' if options.debug else 'Release'
10711077
o['variables']['error_on_warn'] = b(options.error_on_warn)
Collapse file

‎tools/install.py‎

Copy file name to clipboardExpand all lines: tools/install.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def files(action):
163163

164164
if 'true' == variables.get('node_install_npm'):
165165
npm_files(action)
166+
167+
if 'true' == variables.get('node_install_corepack'):
166168
corepack_files(action)
167169

168170
headers(action)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.