-
Notifications
You must be signed in to change notification settings - Fork 54
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
[WIP] Fix build, learn gx #50
Conversation
old version fails to build due to missing pin
You haven't done anything wrong. |
Ah. Wait, nevermind. It's an issue with ipfsget. |
Wrong again... fallback-ipfs-shell has a bunch of outdated deps that need updating. This was a bug in go-ipfs-api which appears to have been fixed. |
We have gx dependency hell:
This means that it's currently impossible to use both go-ipfs-api and go-ipfs in the same package. Unfortunately, ipfs-embedded-shell does exactly this. The solution is to:
|
That's something I proposed a while back and which was rejected back then -- I just failed to clean up the go-libp2p-pubsub package I had created for that... |
So, the correct solution is to make go-ipfs-api not depend on go-libp2p-pubsub and delete that package. However, I'm not sure exactly what that entails (i.e., what go-ipfs-api should use instead). |
@lidel I'd like to add |
That's no good. Are these users possibly in China? Could they download a daemon, run it locally and build it that way? It's probably advisable to have that ready as a fallback in any case. |
It seems to be so:
That's the current workaround I've been suggesting, it seems to work well. |
@djdv No update from me, parked it until deps are fixed (details in #50 (comment)) |
I think that at this point, we can use entirely gx deps for ipget without depending on go-ipfs! Everything needed should now be extracted and gx'ed. |
@whyrusleeping the issue here is that both go-libp2p-pubsub and go-floodsub register protobuf definitions. |
Replaced by #55. |
This PR aims to fix build issues mentioned in #48 and teach me some
gx
;-)Do not merge until all is solved:
ipfs-embedded-shell
(hackergrrl/fallback-ipfs-shell@d6e4759)fallback-ipfs-shell
make install
gx publish
v0.2.6@whyrusleeping is the error below due to my lack of experience with
gx
or a real issue?Seems that
go install
fails due to non-gx transitive deps that I don't have locally. Any tips how to solve it?