Skip to content

Commit 4cf1e82

Browse files
authored
Merge pull request #274 from asgrim/fix-download-build-command-cleanup
Do not clean up for download and build commands
2 parents 03dfe7a + 14e8b37 commit 4cf1e82

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/Command/BuildCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
117117
$targetPlatform,
118118
$requestedNameAndVersion,
119119
$forceInstallPackageVersion,
120+
false,
120121
);
121122
} catch (ComposerRunFailed $composerRunFailed) {
122123
$output->writeln('<error>' . $composerRunFailed->getMessage() . '</error>');

src/Command/DownloadCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
101101
$targetPlatform,
102102
$requestedNameAndVersion,
103103
$forceInstallPackageVersion,
104+
false,
104105
);
105106
} catch (ComposerRunFailed $composerRunFailed) {
106107
$output->writeln('<error>' . $composerRunFailed->getMessage() . '</error>');

src/Command/InstallCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
132132
$targetPlatform,
133133
$requestedNameAndVersion,
134134
$forceInstallPackageVersion,
135+
true,
135136
);
136137
} catch (ComposerRunFailed $composerRunFailed) {
137138
$output->writeln('<error>' . $composerRunFailed->getMessage() . '</error>');

src/ComposerIntegration/ComposerIntegrationHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function runInstall(
3232
TargetPlatform $targetPlatform,
3333
RequestedPackageAndVersion $requestedPackageAndVersion,
3434
bool $forceInstallPackageVersion,
35+
bool $runCleanup,
3536
): void {
3637
$versionSelector = VersionSelectorFactory::make($composer, $requestedPackageAndVersion, $targetPlatform);
3738

@@ -86,6 +87,10 @@ public function runInstall(
8687
throw ComposerRunFailed::fromExitCode($resultCode);
8788
}
8889

90+
if (! $runCleanup) {
91+
return;
92+
}
93+
8994
($this->vendorCleanup)($composer);
9095
}
9196

0 commit comments

Comments
 (0)