Skip to content

Commit 1ac621f

Browse files
committed
use our toolchain for go mod
1 parent 2eeba33 commit 1ac621f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ protected function patchPhpScripts(): void
257257

258258
protected function buildFrankenphp(): void
259259
{
260+
GlobalEnvManager::addPathIfNotExists(GoXcaddy::getEnvironment()['PATH']);
260261
$nobrotli = $this->getLib('brotli') === null ? ',nobrotli' : '';
261262
$nowatcher = $this->getLib('watcher') === null ? ',nowatcher' : '';
262263
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
@@ -312,9 +313,7 @@ protected function buildFrankenphp(): void
312313
'LD_LIBRARY_PATH' => BUILD_LIB_PATH,
313314
];
314315
foreach (GoXcaddy::getEnvironment() as $key => $value) {
315-
if ($key === 'PATH') {
316-
GlobalEnvManager::addPathIfNotExists($value);
317-
} else {
316+
if ($key !== 'PATH') {
318317
$env[$key] = $value;
319318
}
320319
}

0 commit comments

Comments
 (0)