Skip to content

Commit 4d1d884

Browse files
committed
Fix checksum parsing/scraping bug in buildx
Refs #391
1 parent 0997ca7 commit 4d1d884

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

versions.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ for buildxVersion in $buildxVersions; do
8383
file: .[1],
8484
url: ("https://github.com/docker/buildx/releases/download/v" + $version + "/" + .[1]),
8585
}
86+
| select(.file | test("[.]json$") | not)
8687
| { (
8788
.file
88-
| capture("[.](?<os>linux|windows|darwin)-(?<arch>[^.]+)([.]|$)")
89-
// error("failed to parse os-arch from filename: " + .[1])
89+
| capture("[.](?<os>linux|windows|darwin)-(?<arch>[^.]+)(?<ext>[.]exe)?$")
90+
// error("failed to parse os-arch from filename: " + .)
9091
| if .os == "linux" then "" else .os + "-" end
9192
+ ({
9293
"amd64": "amd64",

0 commit comments

Comments
 (0)