Skip to content

Commit

Permalink
CLI-1186: push:artifact fails if empty directory exists (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Nov 8, 2023
1 parent fbdc845 commit b4108ba
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 127 deletions.
67 changes: 0 additions & 67 deletions assets/symfony-fs-mirror.patch

This file was deleted.

10 changes: 0 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"bugsnag/bugsnag": "^3.0",
"composer/semver": "^3.3",
"consolidation/self-update": "^2.1.0",
"cweagans/composer-patches": "^1.7",
"dflydev/dot-access-data": "^3",
"grasmash/expander": "^3",
"guzzlehttp/guzzle": "^7.4",
Expand Down Expand Up @@ -96,7 +95,6 @@
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true,
"cweagans/composer-patches": true,
"phpro/grumphp": true,
"symfony/flex": true,
"infection/extension-installer": true,
Expand All @@ -106,14 +104,6 @@
"extra": {
"branch-alias": {
"dev-main": "2.x-dev"
},
"patches": {
"symfony/filesystem": [
"assets/symfony-fs-mirror.patch"
]
},
"patchLevel": {
"symfony/filesystem": "-p5"
}
},
"prefer-stable": true,
Expand Down
50 changes: 1 addition & 49 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Command/Push/PushArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ private function buildArtifact(Closure $outputCallback, string $artifactDir): vo
->ignoreVCSIgnored(TRUE);
$targetFinder = $this->localMachineHelper->getFinder();
$targetFinder->in($artifactDir)->ignoreDotFiles(FALSE);
$this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE, 'delete' => TRUE], $targetFinder);
$this->localMachineHelper->getFilesystem()->remove($targetFinder);
$this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE]);

$this->localMachineHelper->checkRequiredBinariesExist(['composer']);
$outputCallback('out', 'Installing Composer production dependencies');
Expand Down

0 comments on commit b4108ba

Please sign in to comment.