From fbac53c7e1edc8d5cdf3573e8c61bc0513e8b3fb Mon Sep 17 00:00:00 2001 From: Marco Germani Date: Thu, 7 Nov 2024 10:24:20 +0100 Subject: [PATCH 1/2] Update BuildCommand.php Build command: extra box options ignored Fix issue https://github.com/laravel-zero/laravel-zero/issues/501 --- src/Commands/BuildCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php index 66e637c..e6f5253 100644 --- a/src/Commands/BuildCommand.php +++ b/src/Commands/BuildCommand.php @@ -131,7 +131,7 @@ private function compile(string $name): BuildCommand $boxBinary = windows_os() ? '.\box.bat' : './box'; $process = new Process( - [$boxBinary, 'compile', '--working-dir='.base_path(), '--config='.base_path('box.json')] + $this->getExtraBoxOptions(), + array_merge($boxBinary, 'compile', '--working-dir='.base_path(), '--config='.base_path('box.json')], $this->getExtraBoxOptions()), dirname(__DIR__, 2).'/bin', null, null, From 31980451e756466eead057c65a3b667fd9576aa7 Mon Sep 17 00:00:00 2001 From: Marco Germani Date: Thu, 7 Nov 2024 10:48:11 +0100 Subject: [PATCH 2/2] Update BuildCommand.php Fixed missing parentesis --- src/Commands/BuildCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php index e6f5253..159b17e 100644 --- a/src/Commands/BuildCommand.php +++ b/src/Commands/BuildCommand.php @@ -131,7 +131,7 @@ private function compile(string $name): BuildCommand $boxBinary = windows_os() ? '.\box.bat' : './box'; $process = new Process( - array_merge($boxBinary, 'compile', '--working-dir='.base_path(), '--config='.base_path('box.json')], $this->getExtraBoxOptions()), + array_merge([$boxBinary, 'compile', '--working-dir='.base_path(), '--config='.base_path('box.json')], $this->getExtraBoxOptions()), dirname(__DIR__, 2).'/bin', null, null,