Skip to content

Commit b844407

Browse files
committed
update go-xcaddy version automatically
1 parent 5b4f4f8 commit b844407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SPC/store/pkg/GoXcaddy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public function fetch(string $name, bool $force = false, ?array $config = null):
4848
'macos' => 'darwin',
4949
default => throw new \InvalidArgumentException('Unsupported OS: ' . $name),
5050
};
51-
$go_version = '1.25.0';
51+
[$go_version] = explode("\n", Downloader::curlExec('https://go.dev/VERSION?m=text'));
5252
$config = [
5353
'type' => 'url',
54-
'url' => "https://go.dev/dl/go{$go_version}.{$os}-{$arch}.tar.gz",
54+
'url' => "https://go.dev/dl/{$go_version}.{$os}-{$arch}.tar.gz",
5555
];
5656
Downloader::downloadPackage($name, $config, $force);
5757
}

0 commit comments

Comments
 (0)