From 45760c966d881f4d798ff6c661cb9430b2788947 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 17 Aug 2022 16:50:54 +0200 Subject: [PATCH] fix deploy strategy change from symlink to copy --- src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php index 2e7ad217..594f28c0 100644 --- a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php +++ b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php @@ -28,6 +28,10 @@ public function createDelegate($source, $dest) $sourcePath = $this->getSourceDir() . '/' . $this->removeTrailingSlash($source); $destPath = $this->getDestDir() . '/' . $this->removeTrailingSlash($dest); + //remove symlink to avoid unlink files from vendor directory + if (is_link($destPath)) { + unlink($destPath); + } // Create all directories up to one below the target if they don't exist $destDir = dirname($destPath);