anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

Cannot `go get` this library #861

Closed cocool97 closed 10 months ago

cocool97 commented 10 months ago

I cannot add this library to my new project using go get github.com/anacrolix/torrent, I receive the following error:

go: github.com/anacrolix/torrent@v1.47.1-0.20221102120345-c63f7e1bd720: invalid version: unknown revision c63f7e1bd720

My project is basically empty, my go mod is the following:

module example/test/torrent

go 1.20

Is there something I'm doing wrong ?

anacrolix commented 10 months ago

See https://github.com/anacrolix/torrent/issues/776. This is a bug with Go. Try with Go 1.21, it should be fixed there.

cocool97 commented 10 months ago

Indeed, using golang 1.21 solved the problem. I hope the patch will soon be backported in older go versions as Fedora always have 1 minor late..

Thanks for the help !

anacrolix commented 10 months ago

Thank you. There's nothing I plan here to do, so I'll close.