don't get zig master branch

This commit is contained in:
henderkes 2025-12-29 22:16:53 +01:00
parent 08388c0b15
commit 7688a55656

View File

@ -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');