Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 0242392

Browse files
nhmbounteousdanepowell
authored andcommitted
Fixes #3796: Deploy command continues despite composer failure (#3809)
* Made the deploy command fail and stop on `composer install` exception. * Made the deploy command fail and stop on `composer install` exception. * Update DeployCommand.php Added space in between if statement for code standards * Update DeployCommand.php Updated composer error message
1 parent 385c613 commit 0242392

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Robo/Commands/Deploy/DeployCommand.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,13 @@ protected function composerInstall() {
488488
if ($this->ignorePlatformReqs) {
489489
$command .= ' --ignore-platform-reqs';
490490
}
491-
$this->taskExecStack()->exec($command)
491+
$execution_result = $this->taskExecStack()->exec($command)
492492
->stopOnFail()
493493
->dir($this->deployDir)
494494
->run();
495+
if (!$execution_result->wasSuccessful()) {
496+
throw new BltException("Composer install failed, please check the output for details.");
497+
}
495498
}
496499

497500
/**

0 commit comments

Comments
 (0)