-
-
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
Improve dag API #4133
Improve dag API #4133
Conversation
cced242
to
84a570d
Compare
@@ -48,6 +50,7 @@ into an object of the specified format. | |||
cmds.StringOption("format", "f", "Format that the object will be added as.").Default("cbor"), | |||
cmds.StringOption("input-enc", "Format that the input object will be.").Default("json"), | |||
cmds.BoolOption("pin", "Pin this object when adding.").Default(false), | |||
cmds.StringOption("hash", "Hash function to use").Default(""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be hash-alg
to match https://github.com/ipfs/interface-ipfs-core/tree/master/API/dag#dag-api ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hash
in ipfs add
: https://github.com/ipfs/go-ipfs/blob/master/core/commands/add.go#L44, I guess it's better for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point.
@magik6k woot! Thanks for pushing this forward. Did you get to test it with the WIP PR on js-ipfs-api? Ideally we should land both at the same time so that we are 100% convinced that is what we want. |
Ran the tests now:
|
@magik6k you are welcome to :) Thank you! |
49afaa6
to
b89a579
Compare
@magik6k LGTM, though the OSX sharness tests appear to be failing. Use printf instead of echo, it seems to work better cross platform. |
Yeah, I'll have a look at it. Don't merge yet as I want to get ipfs-inactive/js-ipfs-http-client#534 fully functional with this |
05694f7
to
8014acb
Compare
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
8014acb
to
f8b17c6
Compare
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
6fe1474
to
5da8368
Compare
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
11a0ba9
to
30f482e
Compare
@whyrusleeping I believe this wasn't done yet. See @magik6k comment
|
Yes, it was merged as I wanted to put the larger changes into separate PR. |
Closes #3771
TODO:
Depends on ipfs/go-ipld-cbor#24
cc @diasdavid