Skip to content
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/get: accept paths and not just cids #3517

Merged
merged 2 commits into from
Dec 20, 2016
Merged

Conversation

whyrusleeping
Copy link
Member

resolves #3500

License: MIT
Signed-off-by: Jeromy why@ipfs.io

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping whyrusleeping added the status/in-progress In progress label Dec 17, 2016
Copy link
Member

@Kubuxu Kubuxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I am being a bit unsure about those changes as we have 0 tests so let's create issue for that.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@ghost
Copy link

ghost commented Dec 18, 2016

LGTM 👍

It should also get support for proper paths once we've figured out which namespace to use.

@ghost
Copy link

ghost commented Dec 18, 2016

Actually this doesn't resolve #3500 since it only supports Qmfoobar/a/b/c and not /ipfs/Qmfoobar/a/b/c

@whyrusleeping
Copy link
Member Author

@lgierth does path.Parse really not handle /ipfs/QmFooBar paths?

@whyrusleeping
Copy link
Member Author

@whyrusleeping whyrusleeping merged commit a15360f into master Dec 20, 2016
@whyrusleeping whyrusleeping deleted the fix/dag-get-accept-paths branch December 20, 2016 19:14
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Dec 20, 2016
@ghost
Copy link

ghost commented Dec 20, 2016

Uggh sorry, I must have used the wrong binary again...

> ipfs dag get /ipfs/$(echo foo | ipfs add -q)
{"data":"CAISBGZvbwoYBA==","links":[]}

> ipfs dag get /ipns/ipfs.io/theme
Error: selected encoding not supported

I was pretty sure I got the same error with /ipfs too -- all good now! 👍

@ghost ghost mentioned this pull request Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shouldn't dag api take paths, not just CIDs?
2 participants