From 289b75a171591066f2b9e0cf3267eaca3de5898d Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 23 Dec 2024 07:08:37 +0800 Subject: [PATCH 1/3] [7.x] Use `realpath()` on `vendor:publish` output (#284) Signed-off-by: Mior Muhammad Zaki --- src/Foundation/Console/VendorPublishCommand.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Foundation/Console/VendorPublishCommand.php b/src/Foundation/Console/VendorPublishCommand.php index 51eaa5b5..377b5ec3 100644 --- a/src/Foundation/Console/VendorPublishCommand.php +++ b/src/Foundation/Console/VendorPublishCommand.php @@ -16,8 +16,17 @@ class VendorPublishCommand extends Command protected function status($from, $to, $type) { $format = function ($path) use ($type) { + if ($type === 'directory' && is_link($path)) { + return $path; + } + + $realpath = realpath($path); + + if ($realpath !== false) { + $path = $realpath; + } + return match (true) { - $type === 'directory' && is_link($path) => $path, $this->files->exists($path) => $path, default => (string) realpath($path), }; From 8a95e117d56924a8cde2de14a94614627a8887ec Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 24 Dec 2024 08:56:58 +0800 Subject: [PATCH 2/3] Release 7.51.0 Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-7.x.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG-7.x.md b/CHANGELOG-7.x.md index d8128300..a6d293b8 100644 --- a/CHANGELOG-7.x.md +++ b/CHANGELOG-7.x.md @@ -2,6 +2,18 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`. +## 7.51.0 + +Released: 2024-12-24 + +### Added + +* Add ability to symlink directory in from skeleton to package. + +### Changes + +* Use `realpath()` on `vendor:publish` output. + ## 7.50.1 Released: 2024-12-19 From d4d27fb3d4a127f6ea07915a9df7c10a16810c7e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 24 Dec 2024 09:00:04 +0800 Subject: [PATCH 3/3] Release 8.32.0 Signed-off-by: Mior Muhammad Zaki --- CHANGELOG-8.x.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 273c21fd..6ad8b7f5 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,18 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`. +## 8.32.0 + +Released: 2024-12-24 + +### Added + +* Add ability to symlink directory in from skeleton to package. + +### Changes + +* Use `realpath()` on `vendor:publish` output. + ## 8.31.1 Released: 2024-12-19