Skip to content

Commit 3fbc4b8

Browse files
committed
don't fetch old nix releases
1 parent 83fe5d2 commit 3fbc4b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/update-nix-releases.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ writeShellApplication {
2424
| sort --reverse --version-sort \
2525
| while read -r version; do
2626
27+
# ignore everything below 2.18 for speed, this might need to be adjusted in the future
28+
majorVersion=$(echo "$version" | cut -d. -f1)
29+
minorVersion=$(echo "$version" | cut -d. -f2)
30+
if [ "$majorVersion" -lt 2 ] || { [ "$majorVersion" -eq 2 ] && [ "$minorVersion" -lt 18 ]; }; then
31+
echo >&2 "Skipping $version"
32+
continue
33+
fi
34+
2735
rev=$(git -C "$tmp/nix" rev-parse "$version-maintenance")
2836
echo >&2 "Version $version on branch $version-maintenance is at $rev"
2937

0 commit comments

Comments
 (0)