-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Milestone
Description
Hi,
Correct me if I'm wrong, but it seems it's not possible to get the checksums of Go downloads without actually parsing a whole HTML page?
My expected behavior to download Go and it's checksum would be:
wget https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz.sha256sum
But the checksum is not there, the only place I can find it is hardcoded into the HTML of the download page (probably autogenerated during a build I assume).
I would like to do this download from a script and that's why manually copying the checksum is a bit tedious.
Here is an example of how it's possible to download and verify Dart's SDK download:
# Example of how to download and verify the Dart SDK
mkdir /tmp/download
cd /tmp/download
wget https://storage.googleapis.com/dart-archive/channels/stable/release/1.14.2/sdk/dartsdk-linux-x64-release.zip
wget https://storage.googleapis.com/dart-archive/channels/stable/release/1.14.2/sdk/dartsdk-linux-x64-release.zip.sha256sum
sha256sum -c dartsdk-linux-x64-release.zip.sha256sum
cd -
Would it be possible to add so that checksums are served up in the golang storage bucket?