Skip to content

Commit 7688a55

Browse files
committed
don't get zig master branch
1 parent 08388c0 commit 7688a55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/SPC/store/pkg/Zig.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ public function fetch(string $name, bool $force = false, ?array $config = null):
7272

7373
$latest_version = null;
7474
foreach ($index_json as $version => $data) {
75-
$latest_version = $version;
76-
break;
75+
// Skip the master branch, get the latest stable release
76+
if ($version !== 'master') {
77+
$latest_version = $version;
78+
break;
79+
}
7780
}
7881

7982
if (!$latest_version) {

0 commit comments

Comments
 (0)