mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
don't get zig master branch
This commit is contained in:
parent
08388c0b15
commit
7688a55656
@ -72,9 +72,12 @@ class Zig extends CustomPackage
|
|||||||
|
|
||||||
$latest_version = null;
|
$latest_version = null;
|
||||||
foreach ($index_json as $version => $data) {
|
foreach ($index_json as $version => $data) {
|
||||||
|
// Skip the master branch, get the latest stable release
|
||||||
|
if ($version !== 'master') {
|
||||||
$latest_version = $version;
|
$latest_version = $version;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!$latest_version) {
|
if (!$latest_version) {
|
||||||
throw new DownloaderException('Could not determine latest Zig version');
|
throw new DownloaderException('Could not determine latest Zig version');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user