Skip to content

Commit

Permalink
Merge pull request #793 from ibuildthecloud/asterick
Browse files Browse the repository at this point in the history
bug: allow asterick on go binary checksum files
  • Loading branch information
ibuildthecloud authored Aug 13, 2024
2 parents 50503da + a4f3253 commit 657256e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/repos/runtimes/golang/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,9 @@ func getChecksum(ctx context.Context, rel *release) string {
scan := bufio.NewScanner(resp.Body)
for scan.Scan() {
fields := strings.Fields(scan.Text())
if len(fields) != 2 || fields[1] != rel.srcBinName() {
continue
if len(fields) == 2 && (fields[1] == rel.srcBinName() || fields[1] == "*"+rel.srcBinName()) {
return fields[0]
}
return fields[0]
}

return ""
Expand Down

0 comments on commit 657256e

Please sign in to comment.