From 6b689f1584881546873334a8508e3ea9f8dd39c4 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Mon, 2 Jun 2025 15:12:44 +0700 Subject: [PATCH] explicitly pass env to process handler, fails in docker otherwise (??????) --- src/SPC/command/CraftCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SPC/command/CraftCommand.php b/src/SPC/command/CraftCommand.php index 25fae675..c5ddfb74 100644 --- a/src/SPC/command/CraftCommand.php +++ b/src/SPC/command/CraftCommand.php @@ -131,7 +131,8 @@ class CraftCommand extends BaseCommand } $prefix = PHP_SAPI === 'cli' ? [PHP_BINARY, $argv[0]] : [$argv[0]]; - $process = new Process([...$prefix, $cmd, '--no-motd', ...$args], timeout: null); + $env = getenv(); + $process = new Process([...$prefix, $cmd, '--no-motd', ...$args], env: $env, timeout: null); $this->log("Running: {$process->getCommandLine()}", true); if (PHP_OS_FAMILY === 'Windows') {