Skip to content

Commit afd6cc9

Browse files
committed
Handle "disableAutoUpdate" for PlatformIO Core installer
1 parent d510516 commit afd6cc9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/installer/stages/platformio-core.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,17 @@ export default class PlatformIOCoreStage extends BaseStage {
176176
if (this.useDevCore()) {
177177
scriptArgs.push('--dev');
178178
}
179-
scriptArgs.push(...['check', 'core', '--auto-upgrade']);
180-
scriptArgs.push(...['--dump-state', stateJSONPath]);
179+
scriptArgs.push(
180+
...[
181+
'check',
182+
'core',
183+
this.params.disableAutoUpdates ? '--no-auto-upgrade' : '--auto-upgrade',
184+
]
185+
);
181186
if (this.params.pioCoreVersionSpec) {
182187
scriptArgs.push(...['--version-spec', this.params.pioCoreVersionSpec]);
183188
}
189+
scriptArgs.push(...['--dump-state', stateJSONPath]);
184190
console.info(await callInstallerScript(await this.whereIsPython(), scriptArgs));
185191

186192
// Load PIO Core state

0 commit comments

Comments
 (0)