asdf-golang icon indicating copy to clipboard operation
asdf-golang copied to clipboard

Versions prior to 1.5.4 don't have checksum files available, which renders them impossible to install

Open vyneer opened this issue 3 years ago • 0 comments

Describe the bug It seems like a .sha256 file only started getting provided with the downloads somewhere in 2016, which leads to this plugin being unable to install versions older than that because of a failed checksum check.

To Reproduce Steps to reproduce the behavior:

  1. asdf install golang 1.5.3
  2. See error

Expected behavior Go version 1.5.3 installs.

Screenshots image

Desktop

  • OS: Arch Linux 6.0.7.zen1-1 amd64 and
  • OS: Windows WSL 5.15.68.1-microsoft-standard-WSL2

Additional context It seems like the Go team is aware of the issue, and they're planning on adding the missing checksums eventually (https://github.com/golang/go/issues/45608). They are also missing from the go.dev/dl JSON list, but there are SHA1 checksums available on the plain https://go.dev/dl page.

Not sure what's the best way to go about fixing this, but, if possible to implement, maybe some kind of --skip-checksum flag or SKIP_CHECKSUM=1 env var to bypass the check would be helpful.

vyneer avatar Nov 06 '22 14:11 vyneer