Commit Graph

1656 Commits

Author SHA1 Message Date
chenminjian
5afa7ebfdc refact(cmd/repo): repo verify uses new cmd lib
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:12:32 +08:00
chenminjian
f7b6ee3c87 refact(cmd/repo): repo fsck and repo version uses new cmd lib
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:04:44 +08:00
chenminjian
17e7892036 enhance(cmd/verify): add goroutine count to improve verify speed
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 13:30:12 -07:00
Steven Allen
ec9fac7379 gx: update go-ipld-cbor
(might as well do this at the same time)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 13:17:44 -07:00
hannahhoward
943a5de974 Update go-mfs and go-unixfs
So we can get go-unixfs v1.2.0

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-02 13:16:56 -07:00
Steven Allen
f659eec3d9
Merge pull request #5719 from chenminjian/fix/cmd/version
fix(flag/version): flag `all` should have a higher priority
2018-11-02 13:13:02 -07:00
Overbool
488db7d2f2 commands/p2p: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
7292c1da23 commands/p2p: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
4a2c3cb3cf commands/dht: use res.Emit directly
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
7e7a04e21f commands/dht: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
e1d1f68f08 commands/object: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
0fe7bdfce9 commands/object: add comment
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
df58a2d617 commands/object: fix object diff option error
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
677c953dc4 commands/object: use new cmds
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
f37553f065 commands/files: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
546d3bed5a commands/files: can't get flush option
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
efa280c531 commands/files: use MakeTypedEncoder
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
b80589f98e commands/files: use new cmds
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
chenminjian
6f219e0d8f fix(flag/version): flag all should have a higher priority
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 19:30:09 +08:00
Overbool
bf15999c02 cmds/env: add a config path helper
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 10:10:28 +08:00
Steven Allen
16d70eac32 add a todo to remember to remove log reformatting
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-31 04:53:57 -07:00
Steven Allen
68ac5170f1 re-format log output as ndjson
Apparently, js-ipfs-api expects this. Really, I'm not sure why js-ipfs-api even
cares about this endpoint but that's a different issue.

The real fix is to change back to ndjson in go-log but that would force us to
update every package (not good when we're trying to push out a release like
this).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 17:26:49 -07:00
Steven Allen
d5c8fa50c8
Merge pull request #5705 from ipfs/fix/resolve-non-terminal
error on resolving non-terminal paths
2018-10-30 13:13:34 -07:00
Steven Allen
126d996f60 resolve: restore error message
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 13:02:55 -07:00
Steven Allen
37f33812ae error on resolving non-terminal paths
This isn't the *correct* fix but it (mostly) restores the previous behavior.

Note 1: It *also* fixes resolution of `/ipld` paths by avoiding `path.FromCid`.
Note 2: This does not preserve the error. That was a DagCBOR specific error that
has nothing to do with the issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 12:34:32 -07:00
Steven Allen
af53380e8c gx: update go-path
fixes the changed path cat error causing the js-ipfs-api tests to fail

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 09:27:41 -07:00
Steven Allen
018265940c
Merge pull request #5626 from ipfs/feat/impoter-batching
Explicitally use BufferedDAG after removing Batch from importers
2018-10-30 09:24:57 -07:00
Steven Allen
8543e27e0d
Merge pull request #5699 from ipfs/fix/pin-ls-output
Fix pin ls output when hash is specified
2018-10-30 07:52:19 -07:00
Łukasz Magiera
08d6e7844a fix pin ls output when hash is specified
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-30 15:26:18 +01:00
Steven Allen
3d28165c94
Merge pull request #5698 from ipfs/fix/libp2p-ping
ping: switch to the ping service enabled in the libp2p constructor
2018-10-30 07:22:59 -07:00
Steven Allen
cc0d6d7338 ping: switch to the ping service enabled in the libp2p constructor
We now configure the ping service in go-libp2p by default. Instead of creating a
new (duplicate) ping service, we can now just (a) rely on this to handle
incoming pings and (b) use the "Ping" function to ping peers.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:57:41 -07:00
Steven Allen
e332af8ed5 commands: fix a bunch of tiny commands-lib issues
* Always check errors returned by emit. Otherwise, we may not notice when the
  client goes away.
* Make sure to use EmitOnce instead of Emit when appropriate. Otherwise, we
  break javascript.

(thanks Magik6k for finding this before we cut the release...)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:49:08 -07:00
Steven Allen
f8375ec79c
Merge pull request #5680 from ipfs/fix/cleanup-ping
cleanup the ping command
2018-10-30 06:42:52 -07:00
Hector Sanjuan
8709e55b85 Add batching when Adding.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-10-29 18:49:37 +01:00
Hector Sanjuan
ef7234d269 Bubble deps
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-10-29 18:49:37 +01:00
chenminjian
78d878e253 fix(cmd/gc): Run func does not return error when Emit func returns error
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-29 15:49:14 +08:00
Steven Allen
b8f535567f simplify ping.ParsePeerParam
We now *have* p2p multiaddrs.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-28 05:38:24 -07:00
Steven Allen
b870e8c6d1 cleanup and improve ping
1. Use emit directly.
2. Abort immediately when the context is canceled (no need to wait a second for
the sleep to elapse).
3. Ping once a second instead of once a second +TTL (to be more like ping)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-28 05:38:22 -07:00
Steven Allen
b25c14f2e9
Merge pull request #5675 from overbool/refactor/commands/ping
commands/ping: use new cmds lib
2018-10-27 05:38:25 -07:00
Steven Allen
a0c0355dd5 fix pin-lock in dag put
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:29:39 -07:00
Steven Allen
b8d7d25569 remove dead code
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:28:51 -07:00
Steven Allen
64a517afed simplify dag add
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-27 05:28:51 -07:00
Overbool
cec3af28ca commands/ping: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 12:37:10 +08:00
Dominic Della Valle
38cae95f30 gx: update go-ipfs-cmds to 2.0.5
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-10-26 19:50:32 -04:00
Steven Allen
223a0606c1
Merge pull request #5662 from overbool/refactor/commands/dag
cmds/dag: use new cmds lib
2018-10-26 12:53:55 -07:00
Steven Allen
3accb7bebd
Merge pull request #5650 from overbool/refactor/new-cmds-lib
refactor(cmds): use new cmds lib in version, tar and dns
2018-10-26 11:21:22 -07:00
Steven Allen
90d8cff390
Merge pull request #5638 from rcarver/fix/cmds/rm-link
object patch rm-link: change arg from 'link' to 'name'
2018-10-26 11:16:39 -07:00
Overbool
4160eaa637 refactor(cmds): use new cmds lib in tar, dns
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:48:40 +08:00
Overbool
9611d5f310 refactor(cmds): replace MakeEncoder with MakeTypedEncoder
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:47:37 +08:00
Overbool
40a1c75759 refactor(cmds): use new cmds lib in version
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-27 01:47:37 +08:00