Skip to content

Commit 657256e

Browse files
Merge pull request #793 from ibuildthecloud/asterick
bug: allow asterick on go binary checksum files
2 parents 50503da + a4f3253 commit 657256e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: pkg/repos/runtimes/golang/golang.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ func getChecksum(ctx context.Context, rel *release) string {
223223
scan := bufio.NewScanner(resp.Body)
224224
for scan.Scan() {
225225
fields := strings.Fields(scan.Text())
226-
if len(fields) != 2 || fields[1] != rel.srcBinName() {
227-
continue
226+
if len(fields) == 2 && (fields[1] == rel.srcBinName() || fields[1] == "*"+rel.srcBinName()) {
227+
return fields[0]
228228
}
229-
return fields[0]
230229
}
231230

232231
return ""

0 commit comments

Comments
 (0)