go-rod / stealth

anti-bot-detection with rod
https://pkg.go.dev/github.com/go-rod/stealth
MIT License
253 stars 33 forks source link

import stealth shows checksum mismatch error #19

Open ghost opened 2 years ago

ghost commented 2 years ago

main imports github.com/go-rod/stealth: github.com/go-rod/stealth@v0.4.4: verifying module: checksum mismatch downloaded: h1:kKjZSB6osxJInG/2ywC8vt1Y0Oig/UnUfkcd/IRMGDM= sum.golang.org: h1:JU5MgM1TZ1t1r+JLkKyf3EhnxMNCLHjcfQUFe/Vxta8=

ysmood commented 2 years ago

Works fine for me, might be some issue with your go build-cache or proxy.

antitoine commented 1 year ago

Hi, same error for us. The original tag v0.4.4 was override by the v0.4.5 (I don't know when), they have the same hash (no diff when compare both): image

Until the original tag is fixed, a workaround is to specify the commit hash that produce the v0.4.4 in go dependency by running:

go get github.com/go-rod/stealth@c82b4aac9f232ac6d7c6c721152919b7e8e2569f

Or specify this version in the go.mod file:

github.com/go-rod/stealth v0.4.4-0.20211117115945-c82b4aac9f23

And then run go mod tidy