Skip to content

release: provide sha256 checksums in machine readable format #14385

@Scorpiion

Description

@Scorpiion

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions