anacrolix / torrent

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

undefined: sync.OnceFunc #875

Closed ucwong closed 9 months ago

ucwong commented 9 months ago
vendor/github.com/anacrolix/sync/aliases.go:14:21: undefined: sync.OnceFunc
anacrolix commented 9 months ago

I think that's a vendoring problem. You probably need to rerun go mod vendor.

ucwong commented 9 months ago

I think that's a vendoring problem. You probably need to rerun go mod vendor.

I think I did it https://github.com/anacrolix/sync/blob/master/go.mod#L9 It is go1.13, I think sync.OnceFunc added in 1.21.0

image
anacrolix commented 9 months ago

Ah okay.

ucwong commented 9 months ago

I think it is just a linter, when using go vet

ucwong commented 9 months ago

Oh, I used the lower go version, I am closing it. thank you

anacrolix commented 9 months ago

Thanks for reporting this. I've fixed CI on Windows and dropped support for go 1.20 on v1.53.1.

anacrolix commented 9 months ago

There was also a bug in github.com/anacrolix/sync which was fixed.