Commit Graph

1222 Commits

Author SHA1 Message Date
Łukasz Magiera
9aab19ea35 object-patch: Support linking to non-dagpb objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
keks
6f82f08611 fix error handling in core/commands/{add,get}.go
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-12-04 14:27:34 +01:00
Łukasz Magiera
6401a9191e gx: Update go-datastore to 1.4.0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-02 14:55:26 -08:00
Whyrusleeping
66bde41384
Merge pull request #4047 from vyzo/ipns-pubsub
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
Jeromy
971bb01e1b fix builds on windows
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-24 10:37:02 -08:00
keks
8e5fbe9aa1 update go-ipfs-cmds to 0.4.11
to include @frist's uuid logging

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-22 19:06:00 +01:00
Whyrusleeping
e1f433e3a8
Merge pull request #4402 from keks/fix/pubsub-flush
core/commands/pubsub.go: flush output before iterating over received messages
2017-11-21 21:30:15 -08:00
Whyrusleeping
1f2247c6bd
Merge pull request #4413 from ipfs/fix/cmd-goroutine-leaks
Fix some goroutine leaks in commands
2017-11-21 21:26:44 -08:00
Steven Allen
2997f48a67 fix goroutine leaks in repo commands
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 16:17:27 -08:00
Steven Allen
016b005333 fix goroutine leaks in DHT commands
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 15:39:37 -08:00
Whyrusleeping
e0f38fa33b
Merge pull request #4406 from ipfs/fix/4405
Fix two race conditions (and possibly go routine leaks) in commands
2017-11-21 15:23:39 -08:00
vyzo
e45df729be namesys/pubsub: publisher and resolver
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: unit  test

Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: integrate namesys pubsub

namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
  also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
  flakiness with connectivity problems in travis.
  reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: parallelize dht and pubsub publishing

Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: error checking

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: --enable-namesys-pubsub option and management

Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: pubsub sharness test

test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: update for new command interface

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: fix sharness test for broken MacOS echo

echo -n "" should print -n, but hey it's a mac.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
Łukasz Magiera
697afddbcc object: --quiet flag to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
keks
f3a92617f8 core/commands/pubsub.go: flush output before iterating over received messages
License: MIT
Signed-off-by: keks <keks@cryposcope.co>
2017-11-21 10:00:58 -08:00
Steven Allen
bcd25416d9 cmds: rename DefaultVal -> Default, Default -> WithDefault
Propagate change from cmdkit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:49 -08:00
Steven Allen
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
Whyrusleeping
218b29959e
Merge pull request #4042 from asymmetric/fix/default-false
remove all instances of `Default(false)`
2017-11-20 21:32:07 -08:00
Steven Allen
d89a4b6960 fix concurrent SetError in add command
I believe this also fixes a potential go routine leak (on race).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:35:04 -08:00
Steven Allen
65489c1744 fix concurrent SetError in pin command
(segfault)

Also, buffer the response channel. I believe we had a go routine leak here
before.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:34:58 -08:00
Lorenzo Manacorda
57f544a79c remove all instances of Default(false)
Boolean options always default to false.

License: MIT
Signed-off-by: Lorenzo Manacorda <lorenzo@mailbox.org>
2017-11-20 16:10:15 +01:00
Dominic Della Valle
d15fa176cd Fix orphaned gx dependency
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-11-20 00:13:35 -05:00
adamliesko
a09d974652 core: get cmd outPath removes trailing slash - fixes #3729
When using path with trailing slashes, ipfs get command had issues
with trying to store content into '.' folder (as the file part of the path
was empty). Now, it correctly stores the file into desired folder,
thanks to the removal of trailing slash by introducing a
getOutPath function in get command, which does proper parsing
Of the output path.

BEFORE:
 $  .pfs get /ipns/multiformats.io/
Saving file(s) to .

NOW:
$ ./ipfs get /ipns/multiformats.io/
Saving file(s) to multiformats.io

License: MIT
Signed-off-by: adamliesko <adamliesko@gmail.com>
2017-11-18 20:04:18 +01:00
keks
d95a87cf57 update to go-ipfs-cmds 0.4.9
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
keks
0d9d21875c compatible to js-ipfs-api
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
Jan Winkelmann
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Whyrusleeping
d6534291ce
Merge pull request #4121 from devedge/doc/help/wrap-desc
wrap-desc: Wrap help descriptions under 80 chars
2017-10-31 15:35:37 -05:00
Whyrusleeping
eaccac3db0
Merge pull request #4347 from thisconnect/doc/cmd/add-chunker-options
chunker long description first shot
2017-10-31 12:08:29 -05:00
Jeromy
5522e4d54d update dht to remove error log
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-28 14:00:06 -07:00
Enrique Erne
6a9682bb00 shorter chunker stragety and fixed size example with fewer nodes
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-28 21:06:39 +02:00
Enrique Erne
31840fa035 improves description about the rabin chunker
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-28 09:34:30 +02:00
tcme
5e49a1d47d first version of chunker long description
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-27 12:26:25 +02:00
Whyrusleeping
8923fdd91c Merge pull request #4340 from ipfs/feat/extract-ipfsaddr
extract go-ipfs-addr
2017-10-25 10:31:38 +01:00
Jeromy
cf6b52e4b0 extract go-ipfs-addr
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-24 07:31:31 -07:00
Jeromy Johnson
fda7dd188d Merge pull request #4306 from thisconnect/doc/cmd/add-chunker-options
adds more info about chunker option
2017-10-23 13:27:57 +01:00
Jeromy Johnson
e1f158b731 Merge pull request #4026 from ipfs/kevina/files-raw-leaves
Add full support for CidV1 in Files API and Dag Modifier
2017-10-19 23:55:58 +01:00
Kevin Atkinson
3003f93854 Fix "files stat" to work on raw nodes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 16:08:10 -04:00
Kevin Atkinson
798afedf8d Make --hash and related option local to sub-commands that use them.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
b5b61f7527 Rename "files update" to "files chcid".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
d29930c031 Eliminate Prefix field from MFS root, use MkdirOpts.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
fd7b72fa16 Fix help text for "update" command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
63ddffdb5d Add "files update" command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
18a6344bdd Add --cid-version and --hash-fun option to files API
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
f2fbfdf291 mfs: inherit CID prefix from from parent directory
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
a3bd2c23b3 Add "--raw-leaves" option to "ipfs files"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:00:24 -04:00
Steven Allen
2f9e9ec571 gx update go-peerstream, go-libp2p-floodsub
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 08:20:35 -07:00
Koushik Roy
d840f67e0a Check for Peers before dht provide (#4290)
* Check for Peers before `dht provide`

Check if there are any peers before running logic for `dht provide`

License: MIT
Signed-off-by: Koushik Roy <meff@meff.me>
2017-10-17 13:29:35 +01:00
Enrique Erne
2eea7ba4b8 shorter description for chunker option
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-15 10:29:47 +02:00
Enrique Erne
92f96ee689 adds more info about chunker option
see https://github.com/ipfs/go-ipfs/issues/4276

License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-14 19:32:35 +02:00
Jeromy
94ec788555 update deps for new connmgr code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-14 05:38:52 -07:00
vyzo
4f1edf2570 update go-testutil to 1.1.12
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-10-05 17:11:39 +03:00