Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/StarterKits/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ protected function prepareRepository(): self
*/
protected function requireStarterKit(): self
{
$error = null;

spin(
function () {
function () use (&$error) {
$version = $this->branch;

// Allow dev stability when installing from VCS repo without tagged releases
Expand All @@ -265,12 +267,16 @@ function () {
try {
Composer::withoutQueue()->throwOnFailure()->require($package);
} catch (ProcessException $exception) {
$this->rollbackWithError("Error installing starter kit [{$this->package}].", $exception->getMessage());
$error = $exception;
}
},
"Preparing starter kit [{$this->package}]..."
);

if ($error) {
$this->rollbackWithError("Error installing starter kit [{$this->package}].", $error->getMessage());
}

return $this;
}

Expand Down
Loading