Skip to content

Commit b5b7972

Browse files
committed
fix: increase timeout for composer install and clean up custom php binary package directory
1 parent e733d3e commit b5b7972

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Traits/PrunesVendorDirectory.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ abstract protected function buildPath(string $path = ''): string;
1616
protected function pruneVendorDirectory()
1717
{
1818
Process::path($this->buildPath())
19+
->timeout(300)
1920
->run('composer install --no-dev', function (string $type, string $output) {
2021
echo $output;
2122
});
@@ -25,5 +26,11 @@ protected function pruneVendorDirectory()
2526
$this->buildPath('/vendor/bin'),
2627
$this->buildPath('/vendor/nativephp/php-bin'),
2728
]);
29+
30+
// Remove custom php binary package directory
31+
$binaryPackageDirectory = $this->binaryPackageDirectory();
32+
if (! empty($binaryPackageDirectory)) {
33+
$filesystem->remove($this->buildPath($binaryPackageDirectory));
34+
}
2835
}
2936
}

0 commit comments

Comments
 (0)