Skip to content

Commit 95f5bae

Browse files
authored
fix: Wrong download link for Pro version (#1190)
1 parent 5363e64 commit 95f5bae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

goreleaserTask/src/utils.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,13 @@ export async function getGoReleaserCLI(version, distribution: string) {
9898
);
9999
if (version === 'latest') {
100100
checkedVersion = semver.maxSatisfying(cleanTags, '*');
101-
if (isPro(distribution)) {
102-
checkedVersion += suffix(distribution);
103-
}
104101

105102
} else {
106103

107104
const cleanVersion: string = cleanTag(version);
108105
checkedVersion =
109-
semver.maxSatisfying(cleanTags, cleanVersion) +
110-
suffix(distribution);
106+
semver.maxSatisfying(cleanTags, cleanVersion)
111107
}
112-
113108
const filename = getGoreleaserFilename(distribution, checkedVersion);
114109
const downloadUrl = util.format(
115110
'https://github.com/goreleaser/%s/releases/download/%s/%s',

0 commit comments

Comments
 (0)