-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
dag API and resolving paths #4728
Comments
This is based on a test interface-ipfs-core: in https://github.com/ipfs/interface-ipfs-core/blob/0c76cddcc7eaf8915ca11b20d6e41c7271b57bea/js/src/dag.js#L242-L247. |
CBOR works as I'd expect it:
|
Yep, that's definitely a bug, it's something that should get resolved once #4666 is addressed. |
I had a quick chat with @whyrusleeping on IRC about this. Here's the summary: In the Go implementation slashes always mean "traverse links". So
There is no way to get the data of a DAG node through a path. |
Yes, but the other graph-related functions should still work. Git plugin is one example here.
This is the real problem here, it's going to be much simpler to address once |
@magik6k I've read #4666 before, but know I understand the |
It will require some more changes to the internals. Dag api will use ipld resolving by default, so it will work. |
The todos here are:
|
We now have separate
|
Hey hey, I just stumbled on this from a js-ipfs code comment, I think it's fixed now as of v0.10. I've uncommented the tests in js-ipfs that were blocked waiting for this ipfs/js-ipfs#3917 @aschmahmann I think this can be closed now. |
Version information:
go-ipfs version: 0.4.14-dev-25eeb1e25
Repo version: 6
System version: amd64/linux
Golang version: go1.9.2
Type: Enhancement, Bug
Description:
I'm currently working on implementing the dag API for https://github.com/ipfs/js-ipfs-api/. There I stumbled upon issues when running the https://github.com/ipfs/interface-ipfs-core/ dag tests. Resolving doesn't work as I expect it, though I might have a wrong understanding. Here's an example:
I would expect the last curl command to return:
Am I wrong?
The text was updated successfully, but these errors were encountered: