Skip to content

Commit

Permalink
fix: composer environment compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Nov 17, 2024
1 parent 6430ce4 commit 037f126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Support/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static function run(string $cmd, mixed $output = null, ?string $cwd = nul

$envs = [
'PATH' => rtrim(`echo \$PATH`),
'COMPOSER_HOME' => '~/.config/composer',
'COMPOSER_MEMORY_LIMIT' => '-1',
'COMPOSER_ALLOW_SUPERUSER' => 1,
] + $env;
Expand Down

0 comments on commit 037f126

Please sign in to comment.