-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: execute kubo daemon
programmatically
#12
Comments
tried following https://github.com/ipfs/kubo/tree/master/docs/examples/kubo-as-a-library but i'm running into errors: ╰─ ✘ 1 ❯ go run ipfs.go
# github.com/ipfs/kubo/thirdparty/verifbs
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:17:33: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:25:34: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:33:33: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:44:33: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:52:34: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/ipfs/kubo@v0.22.0-rc1/thirdparty/verifbs/verifbs.go:60:33: not enough arguments in call to verifcid.ValidateCid
have (cid.Cid)
want (verifcid.Allowlist, cid.Cid)
# github.com/libp2p/go-libp2p/p2p/protocol/identify
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/protocol/identify/id.go:559:25: type func(a multiaddr.Multiaddr, b multiaddr.Multiaddr) bool of func(a, b ma.Multiaddr) bool {…} does not match inferred type func(a multiaddr.Multiaddr, b multiaddr.Multiaddr) int for func(a E, b E) int
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/protocol/identify/obsaddr.go:217:22: type func(first *observedAddr, second *observedAddr) bool of func(first, second *observedAddr) bool {…} does not match inferred type func(a *observedAddr, b *observedAddr) int for func(a E, b E) int
# github.com/libp2p/go-libp2p/p2p/transport/quicreuse
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/config.go:20:45: undefined: quic.VersionDraft29
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/connmgr.go:186:22: undefined: quic.VersionDraft29
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/connmgr.go:187:49: undefined: quic.VersionDraft29
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/connmgr.go:255:14: undefined: quic.OptimizeConn
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/listener.go:49:50: undefined: quic.VersionDraft29
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/listener.go:92:53: conn.ConnectionState().TLS.ConnectionState undefined (type tls.ConnectionState has no field or method ConnectionState)
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/quic_multiaddr.go:23:12: undefined: quic.VersionDraft29
../../../../../.asdf/installs/golang/1.21.1/packages/pkg/mod/github.com/libp2p/go-libp2p@v0.29.0/p2p/transport/quicreuse/quic_multiaddr.go:38:19: undefined: quic.VersionDraft29 code at d7ac516 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This app starts up okay, but I need to figure out a way to run an ipfs node from
app.go
ormain.go
The text was updated successfully, but these errors were encountered: