Skip to content
Snippets Groups Projects
Commit 6b191b16 authored by James King's avatar James King Committed by Rhys Arkins
Browse files

fix(composer): global hanging due to script / autoloader errors (#2626)

Make sure no scripts or autoloader or interactivity is set when updating composer dependencies to stop issues with PHP frameworks.

Closes #2625 
parent 8f8cffbd
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ async function getArtifacts( ...@@ -76,7 +76,7 @@ async function getArtifacts(
} }
const args = const args =
('update ' + updatedDeps.join(' ')).trim() + ('update ' + updatedDeps.join(' ')).trim() +
' --ignore-platform-reqs --no-ansi'; ' --ignore-platform-reqs --no-ansi --no-interaction --no-scripts --no-autoloader';
logger.debug({ cmd, args }, 'composer update command'); logger.debug({ cmd, args }, 'composer update command');
({ stdout, stderr } = await exec(`${cmd} ${args}`, { ({ stdout, stderr } = await exec(`${cmd} ${args}`, {
cwd, cwd,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment