vhs icon indicating copy to clipboard operation
vhs copied to clipboard

go install results in a checksum error

Open ismail opened this issue 3 years ago • 6 comments

❯ go version
go version go1.19.3 linux/amd64

❯ go install github.com/charmbracelet/vhs@latest
go: downloading github.com/charmbracelet/vhs v0.1.1
go: github.com/charmbracelet/vhs@latest: github.com/charmbracelet/[email protected]: verifying module: checksum mismatch
        downloaded: h1:EZCqR9qwpqg0j4VD2cy8a/WlTAs0uaUgU4RW0/pC1D8=
        sum.golang.org: h1:SSZYYmO4FrknkqC8J+X8pVLbgEy+StMSpk4b4sYtJ00=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

ismail avatar Nov 02 '22 13:11 ismail

Hmm, unfortunately I am unable to reproduce:

image

maaslalani avatar Nov 02 '22 14:11 maaslalani

Can you try with

export GOPROXY=direct

ismail avatar Nov 02 '22 14:11 ismail

image

maaslalani avatar Nov 02 '22 15:11 maaslalani

@ismail is this still not working for you if you try it again? Are you able to clear the go cache by any chance?

go ​clean -modcache

maaslalani avatar Nov 02 '22 15:11 maaslalani

Ha, actually when I go clean -modcache I can reproduce the error:

image

maaslalani avatar Nov 02 '22 15:11 maaslalani

did we recreate the tag when releasing? if so, that's probably the reason...

caarlos0 avatar Nov 02 '22 15:11 caarlos0

@ismail We just released a new version of VHS so this should now be fixed but please feel free to reopen this issue if it is not!

maaslalani avatar Nov 23 '22 16:11 maaslalani