Open mrd0ll4r opened 2 years ago
Well, Superhighway84 is depending on go-orbit-db which atm is still using an older version. I tried upgrading to the latest go-orbit-db a few days ago but it failed due to some dependency issues that seem to happen rn in go-orbit-db.
Checked again:
go: downloading github.com/ipfs/go-ipfs v0.12.0
go: downloading github.com/whyrusleeping/cbor-gen v0.0.0-20220224212727-7a699437a831
go: downloading github.com/libp2p/go-libp2p-swarm v0.10.2
go: downloading github.com/libp2p/go-tcp-transport v0.5.1
go: downloading github.com/libp2p/go-mplex v0.5.0
go: downloading github.com/klauspost/compress v1.14.4
go: downloading golang.org/x/mobile v0.0.0-20220224134551-8a0a1e50732f
go: downloading golang.org/x/exp/shiny v0.0.0-20220218215828-6cf2b201936e
go: downloading golang.org/x/exp v0.0.0-20220218215828-6cf2b201936e
go: downloading github.com/godbus/dbus/v5 v5.1.0
# github.com/libp2p/go-libp2p-mplex
../../../.go/pkg/mod/github.com/libp2p/go-libp2p-mplex@v0.5.0/transport.go:21:32: multiple-value multiplex.NewMultiplex() in single-value context
# github.com/libp2p/go-libp2p/p2p/protocol/circuitv2/client
../../../.go/pkg/mod/github.com/libp2p/go-libp2p@v0.17.0/p2p/protocol/circuitv2/client/client.go:32:13: undefined: upgrader.Upgrader
../../../.go/pkg/mod/github.com/libp2p/go-libp2p@v0.17.0/p2p/protocol/circuitv2/client/client.go:57:33: undefined: upgrader.Upgrader
../../../.go/pkg/mod/github.com/libp2p/go-libp2p@v0.17.0/p2p/protocol/circuitv2/client/transport.go:21:42: undefined: upgrader.Upgrader
Something still doesn't seem right with the dependencies.
Unlike what the comment in the linked go-libp2p stated randomly removing indirect dependencies and basically go get
-ing everything from scratch finally fixed the upgrade issues. Man, IPFSs really exaggerates it with dependencies and it seems there's no documentation which version of lib A works with what versions of lib B. Anyway, at least Superhighway84 is now running the latest go-orbit-db release.
Man, IPFSs really exaggerates it with dependencies and it seems there's no documentation which version of lib A works with what versions of lib B. Anyway, at least Superhighway84 is now running the latest go-orbit-db release.
I can very much relate :) Thanks for looking into it!
FYI: go-orbit-db was upgraded to 1.17.1, which now uses go-ipfs 0.12.2. I have just pushed an update, 0.2.0, which includes the updated libraries. Now Superhighway84 is able to run on IPFS 0.12 repositories!
the same thing is now happening with regard to program version 12 and repo version 13...
Sorry, yeah, it's really a little bit of a PITA. :-( Will have a look!
@mrusme I get the same question but i cannot solve it: Your programs version (13) is lower than your repos (14).
i download the fs-repo-migrations and run that but get the error:migrations/fs-repo-migrations ; exit; Could not get available repo migrations: http.DefaultClient.Do error: Get "https://ipfs.io/ipns/dist.ipfs.io/fs-repo-10-to-11/versions": dial tcp 52.58.1.161:443: i/o timeout
@timecool-cpu yeah, version incompatibilities are a tough sell for IPFS unfortunately. Ultimately if you don't care, you can just delete the whole IPFS repo and re-initialize it with the version that Superhighway84 is using. Alternatively, I've described in the README how you can use a dedicated IPFS repo for Superhighway84. You'd need to have the IPFS CLI in that version around nevertheless.
go-ipfs
v0.12 was released. This introduced repo version 12. I upgraded IPFS, upgraded my repo, but now superhighway84 doesn't like it anymore, which is understandable:What's the plan? I'm using a separate
IPFS_PATH
for superhighway84 with repo version 11 now, which works, but I guess we'll have to upgrade at some point...