From 11d3b4aae05b2a097dc07db26b40dab4a4967b41 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 18 Oct 2023 13:24:03 -0700 Subject: [PATCH] CLI-1136: [push:artifact] include empty directories and symlinks --- src/Command/Push/PushArtifactCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Push/PushArtifactCommand.php b/src/Command/Push/PushArtifactCommand.php index 58f5a3b89..0a1271f94 100644 --- a/src/Command/Push/PushArtifactCommand.php +++ b/src/Command/Push/PushArtifactCommand.php @@ -192,13 +192,13 @@ private function buildArtifact(Closure $outputCallback, string $artifactDir): vo // @see https://git.drupalcode.org/project/drupal/-/blob/9.1.x/sites/default/default.settings.php#L295 $outputCallback('out', "Mirroring source files from $this->dir to $artifactDir"); $originFinder = $this->localMachineHelper->getFinder(); - $originFinder->files()->in($this->dir) + $originFinder->in($this->dir) // Include dot files like .htaccess. ->ignoreDotFiles(FALSE) // Ignore VCS ignored files (e.g. vendor) to speed up the mirror (Composer will restore them later). ->ignoreVCSIgnored(TRUE); $targetFinder = $this->localMachineHelper->getFinder(); - $targetFinder->files()->in($artifactDir)->ignoreDotFiles(FALSE); + $targetFinder->in($artifactDir)->ignoreDotFiles(FALSE); $this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE, 'delete' => TRUE], $targetFinder); $this->localMachineHelper->checkRequiredBinariesExist(['composer']);