Skip to content

Commit dc7921f

Browse files
committed
Fix "unstable" alias to only apply to "latest" (never "latest-1")
1 parent cab016a commit dc7921f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

generate-stackbrew-library.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,12 @@ for version; do
9090
done
9191
versionAliases+=(
9292
$fullVersion
93-
$stability # "stable", "unstable"
94-
latest
9593
)
94+
if [ "$version" = 'latest' ] || [ "$stability" != 'unstable' ]; then
95+
# if we have version 1.36.0 labelled as "unstable" and then 1.36.1 is released, we don't want to mark "1.35.0" as the "latest unstable" because that's not true, so only the latest latest latest release can be "unstable"
96+
versionAliases+=( $stability )
97+
fi
98+
versionAliases+=( latest )
9699

97100
declare -A archLatestDir=()
98101
for variant in "${variants[@]}"; do

0 commit comments

Comments
 (0)