x/website/internal/dl: ?mode=json don't show the SHA1 hash when the SHA256 hash is not available #37586
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
For releases older than Go 1.6, the SHA256 hash is not available, so the
sha256
field in the generated JSON output is empty.However, the SHA1 hash is available, but is not printed due to
A possible solution is:
omitempty
for bothChecksum
andChecksumSHA256
fields"-"
from theChecksum
field tagChecksumSHA256
is not empty, setChecksum
to the empty stringThe text was updated successfully, but these errors were encountered: