Skip to content

Commit 2a2f412

Browse files
authored
Merge pull request #889 from crazywhalecc/franken
use our toolchain for go mod
2 parents d82c86c + 15f8887 commit 2a2f412

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

config/lib.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"lib-suggests-unix": [
1818
"brotli",
1919
"watcher"
20+
],
21+
"lib-depends-macos": [
22+
"libxml2"
2023
]
2124
},
2225
"micro": {

src/SPC/builder/unix/UnixBuilderBase.php

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

256256
protected function buildFrankenphp(): void
257257
{
258+
GlobalEnvManager::addPathIfNotExists(GoXcaddy::getEnvironment()['PATH']);
258259
$nobrotli = $this->getLib('brotli') === null ? ',nobrotli' : '';
259260
$nowatcher = $this->getLib('watcher') === null ? ',nowatcher' : '';
260261
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
@@ -310,9 +311,7 @@ protected function buildFrankenphp(): void
310311
'LD_LIBRARY_PATH' => BUILD_LIB_PATH,
311312
];
312313
foreach (GoXcaddy::getEnvironment() as $key => $value) {
313-
if ($key === 'PATH') {
314-
GlobalEnvManager::addPathIfNotExists($value);
315-
} else {
314+
if ($key !== 'PATH') {
316315
$env[$key] = $value;
317316
}
318317
}

0 commit comments

Comments
 (0)