From 503f1105b25cdfb96ddd6fb435a51e21a4bbf169 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Tue, 5 Dec 2023 20:18:43 -0800 Subject: [PATCH] Unlink symlinked packages during `deleteVendorPackages` --- src/Cleanup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Cleanup.php b/src/Cleanup.php index 511e016a..ef1696ad 100644 --- a/src/Cleanup.php +++ b/src/Cleanup.php @@ -56,6 +56,10 @@ public function cleanup(array $sourceFiles): void $absolutePath = $this->workingDir . $relativeDirectoryPath; + if (is_link($absolutePath)) { + unlink($absolutePath); + } + if ($absolutePath !== realpath($absolutePath)) { continue; }