berty / go-orbit-db

Go version of P2P Database on IPFS
https://berty.tech
Apache License 2.0
405 stars 55 forks source link

go get error #93

Closed diyism closed 1 year ago

diyism commented 2 years ago
go get -u berty.tech/go-orbit-db
# github.com/libp2p/go-libp2p-core/crypto
/opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:36:36: too many arguments in call to btcec.NewPrivateKey
/opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:62:51: too many arguments in call to btcec.PrivKeyFromBytes
/opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:72:36: too many arguments in call to btcec.ParsePubKey
/opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:124:37: (*btcec.PrivateKey)(k).Sign undefined (type *secp256k1.PrivateKey has no field or method Sign)
/opt/lib/go/src/github.com/libp2p/go-libp2p-core/crypto/secp256k1.go:182:20: undefined: btcec.ParseDERSignature
# github.com/ipfs/go-ipfs-blockstore
/opt/lib/go/src/github.com/ipfs/go-ipfs-blockstore/bloom_cache.go:159:13: log.EventBegin undefined (type *log.ZapEventLogger has no field or method EventBegin)
mrusme commented 2 years ago

The different versions of your dependencies don't work with each other. With go-orbit-db you need to be very picky in regard of those. Check one of my project's go.mod, to see what I mean. Also check this PR draft, where I'm updating deps to a newer version.

It's a bummer the go-orbit-db team is not supportive here at all.

gfanton commented 2 years ago

hello, sorry for the delay, it is also very difficult for us to keep and update all libp2p dependencies across our projects, we try to get as close as possible to the go.mod of go-ipfs. If you use different libp2p/ipfs dependencies in your projects that use a different version, this can raise this kind of error, and you have to manually choose the right version.

jefft0 commented 2 years ago

Hello @diyism. The go.mod file was recently updated for the bump to IPFS 12.2 . Are you still having an issue with go get?

jefft0 commented 1 year ago

Hello @diyism. The go.mod file was recently updated for the bump to IPFS 12.2 . Are you still having an issue with go get?

If there are no more comments in 14 days, this issue will be closed as no longer relevant after recent updates to go.mod . Thank you.

diyism commented 1 year ago

Everything is ok now, closed this issue.