go-orbit-db icon indicating copy to clipboard operation
go-orbit-db copied to clipboard

go get error

Open diyism opened this issue 2 years ago • 3 comments

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)

diyism avatar Mar 15 '22 13:03 diyism

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.

mrusme avatar Apr 03 '22 20:04 mrusme

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.

gfanton avatar May 06 '22 14:05 gfanton

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 avatar Jun 19 '22 12:06 jefft0

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.

jefft0 avatar Sep 27 '22 09:09 jefft0

Everything is ok now, closed this issue.

diyism avatar Sep 28 '22 07:09 diyism