Skip to content

Commit

Permalink
Added utility shell scripts (#368)
Browse files Browse the repository at this point in the history
For querying sha256sums.
  • Loading branch information
freemanjp authored Aug 11, 2024
1 parent 0cdebb0 commit 2a42b97
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions go_versions_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

curl -s 'https://go.dev/dl/?mode=json&include=all' | jq -r '
[
"Version", "Arch", "SHA256"
],
(
.[] |
.version as $version |
.files[] |
select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) |
[
$version,
.arch,
.sha256
]
) | @tsv' | column -t
17 changes: 17 additions & 0 deletions go_versions_stable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

curl -s 'https://go.dev/dl/?mode=json' | jq -r '
[
"Version", "Arch", "SHA256"
],
(
.[] |
.version as $version |
.files[] |
select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) |
[
$version,
.arch,
.sha256
]
) | @tsv' | column -t

0 comments on commit 2a42b97

Please sign in to comment.