Skip to content

Commit cb010d8

Browse files
committed
there's no documented functionality to download without building - xcaddy is meant to do both in one step
1 parent 15979d4 commit cb010d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/SPC/store/pkg/GoModFrankenphp.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public function extract(string $name): void
5252
// install xcaddy
5353
$go_exec = PKG_ROOT_PATH . "{$pkgroot}/{$name}/bin/go";
5454
// $xcaddy_exec = PKG_ROOT_PATH . "$pkgroot/$name/bin/xcaddy";
55-
shell()->appendEnv([
56-
'PATH' => "{$pkgroot}/{$name}/bin:" . getenv('PATH'),
57-
'GOROOT' => "{$pkgroot}/{$name}",
58-
'GOBIN' => "{$pkgroot}/{$name}/bin",
59-
'GOPATH' => "{$pkgroot}/go",
60-
])
55+
shell()
56+
->appendEnv([
57+
'PATH' => "{$pkgroot}/{$name}/bin:" . getenv('PATH'),
58+
'GOROOT' => "{$pkgroot}/{$name}",
59+
'GOBIN' => "{$pkgroot}/{$name}/bin",
60+
'GOPATH' => "{$pkgroot}/go",
61+
])
6162
->exec("{$go_exec} install github.com/caddyserver/xcaddy/cmd/xcaddy@latest");
62-
// TODO: Here to download dependencies for xcaddy and frankenphp first
6363
}
6464
}

0 commit comments

Comments
 (0)