Skip to content

Commit 606c639

Browse files
committed
Restrict channel aliases to 19.03
This will remove the "test" and "stable" aliases for whatever major release comes after 19.03 (so once the next release comes out, "stable" will become a stale alias). I'm not 100% sure this is the right answer, but the "stable" alias has definitely been a huge source of confusion very recently (and it doesn't have much meaning anymore anyways given the death of the "edge" channel).
1 parent 34acb09 commit 606c639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate-stackbrew-library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ for version in "${versions[@]}"; do
122122
${aliases[$version]:-}
123123
)
124124
if [ -z "${latestChannelRelease[$channel]:-}" ]; then
125-
versionAliases+=( "$channel" )
125+
if [ "$rcVersion" = '19.03' ]; then versionAliases+=( "$channel" ); fi # 19.03 is the last release to include any "channel" aliases
126126
latestChannelRelease[$channel]="$version"
127127
fi
128128
# every release goes into the "test" channel, so the biggest numbered release wins (RC or not)
129129
if [ -z "${latestChannelRelease['test']:-}" ]; then
130-
versionAliases+=( 'test' )
130+
if [ "$rcVersion" = '19.03' ]; then versionAliases+=( 'test' ); fi # 19.03 is the last release to include any "channel" aliases
131131
latestChannelRelease['test']="$version"
132132
fi
133133
if [ "$version" = "$rcVersion" ] && [ -z "${latestChannelRelease['latest']:-}" ]; then

0 commit comments

Comments
 (0)