-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed as not planned
Labels
Description
What version of Go are you using (go version)?
This is relevant to go1.16.12
Does this issue reproduce with the latest release?
No.
What did you do?
I want to download and hash the available source releases. I queried the public repository:
$ curl "https://go.dev/dl/?mode=json&include=all" | jq '.[] | select(.version | contains("go1.16.12")) | .files[] | select(.kind | contains("source"))'
{
"filename": "go1.16.12.src.tar.gz",
"os": "",
"arch": "",
"version": "go1.16.12",
"sha256": "2afd839dcb76d2bb082c502c01a0a5cdbfc09fd630757835363c4fde8e2fbfe8",
"size": 20918701,
"kind": "source"
}
However, if we download the archive and hash it, we get a different sha:
$ curl https://go.dev/dl/go/go1.16.12.src.tar.gz | shasum -a 256
b16e15764b8bc06c5c3f9f19bc8b99fa48e7894aa5a6ccdad65da49bbf564793
What did you expect to see?
I would have expected these has to be the same.
What did you see instead?
They weren't.