Closed jaxxstorm closed 1 year ago
lol
hmmm for me it is as below:
╰─$ go run cmd/gobrew/main.go use 1.20.8
==> [Info] Downloading version: 1.20.8
==> [Info] Downloading from: https://go.dev/dl/go1.20.8.darwin-arm64.tar.gz
==> [Info] Downloading to: /Users/pulkit.kathuria/.gobrew/downloads
404 <--- debug status code
==> [Info] Downloading version failed: https://go.dev/dl/go1.20.8.darwin-arm64.tar.gz returned status code 404
==> [Error]: Please check connectivity to url: https://go.dev/dl/go1.20.8.darwin-arm64.tar.gz
What version of gobrew version
are you on?
I think you are on an older version
because [Info] Downloading from: https://golang.org/dl/go1.20.8.darwin-arm64.tar.gz
The current defaultRegistryPath is go.dev
which provides correct status code
https://github.com/kevincobain2000/gobrew/blob/c0cd7e92b6de254857dc2840773ae2360af300c1/gobrew.go#L24
Obviously there's no
1.20.8
of go, so the download should fail