1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-16 12:07:11 +08:00

268 Commits

Author SHA1 Message Date
928581c9e7 Merge pull request #1071 from ipfs/add-err-fix
cmds/add: silent error fix
2015-04-20 01:48:54 -07:00
218aeeb77e cmds/add: silent error fix 2015-04-20 01:18:42 -07:00
31ff954539 Move IPNS resolutions into the core library
Move IPNS resolutions into the core library via the pathresolver.go
file. Fix the CLI commands to leverage this core component.
2015-04-20 01:04:30 -07:00
140cd1fd1b remove debugerrors
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
0a6b880bee fix for #1008 and other pinning fixes
This commit adds a new set of sharness tests for pinning, and addresses
bugs that were pointed out by said tests.

test/sharness: added more pinning tests

Pinning is currently broken. See issue #1051. This commit introduces
a few more pinning tests. These are by no means exhaustive, but
definitely surface the present problems going on. I believe these
tests are correct, but not sure. Pushing them as failing so that
pinning is fixed in this PR.

make pinning and merkledag.Get take contexts

improve 'add' commands usage of pinning

FIXUP: fix 'pin lists look good'

ipfs-pin-stat simple script to help check pinning

This is a simple shell script to help check pinning.

We ought to strive towards making adding commands this easy.
The http api is great and powerful, but our setup right now
gets in the way. Perhaps we can clean up that area.

updated t0081-repo-pinning

- fixed a couple bugs with the tests
- made it a bit clearer (still a lot going on)
- the remaining tests are correct and highlight a problem with
  pinning. Namely, that recursive pinning is buggy. At least:
  towards the end of the test, $HASH_DIR4 and $HASH_FILE4 should
  be pinned indirectly, but they're not. And thus get gc-ed out.
  There may be other problems too.

cc @whyrusleeping

fix grep params for context deadline check

fix bugs in pin and pin tests

check for block local before checking recursive pin
2015-04-19 23:40:25 -07:00
233c39ff62 publish by path 2015-04-12 21:51:58 +00:00
69db1b4ec5 bugfix: add was not setting error 2015-04-12 07:53:04 -07:00
f10c8282c7 handle error from GetClosestPeers 2015-04-06 00:08:28 -07:00
2c8cb9fc75 bandwidth metering on streams
humanize bandwidth output

instrument conn.Conn for bandwidth metrics

add poll command for continuous bandwidth reporting

move bandwidth tracking onto multiaddr net connections

another mild refactor of recording locations

address concerns from PR

lower mock nodes in race test due to increased goroutines per connection
2015-03-31 19:58:08 -07:00
bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
13c489eca1 fix context respect through fuse reading 2015-03-24 12:23:01 -07:00
07008042f1 ipfs ls: added --headers option
- added tests for 'ipfs ls --headers'
- comments from CR (opts)
- sharness: fix ls test whitespace
2015-03-20 15:34:56 -07:00
8a3db7cbc4 testing: nofuse testing (for osx travis) 2015-03-18 01:44:36 -07:00
fdd1cd8dc0 Remove fsrepo.At, make Open a constructor function
Nobody calls At without immediately calling Open.

First step, a mechanical transformation. Cleanups will follow.
2015-03-13 20:19:03 -07:00
b688e72de0 ipfs object put: return error if object is empty (fixes #883) 2015-03-10 22:58:50 +01:00
759437e054 ls: introduce specific output types (removes IsDir from object plumbing commands) 2015-03-10 13:56:57 +01:00
d88ba19357 disabled 'ipfs update' command for now 2015-03-09 10:22:11 +01:00
451222cf1d gc is actually repo gc, reflect in docs
not exactly elegant, but fixes #871 in the short term. in the mid term, unless more `repo` commands show up, i suggest just replacing `repo gc` simply by `gc`.
2015-03-08 18:05:42 -04:00
bff7f73068 Merge pull request #878 from jbenet/dontIgnoreCancelFuncs
context: Always call returned cancel funcs
2015-03-07 09:49:19 -08:00
1d5b903611 added cancel func calls previously ignored 2015-03-07 09:31:46 -08:00
dfe2b16763 cmds/id: use req context -- dont timeout unnecessarily
commands should last as long as the user keeps the cmd going
2015-03-07 09:24:15 -08:00
bc84ffafe3 enable stdin input for ipfs object put 2015-03-07 16:50:00 +01:00
6a3578be84 explain what direct/indirect/recursive means
i couldn't understand what those meant. it was explain (at least partly) in #590 so let's share the goods!
2015-03-07 08:32:48 -05:00
0f69823077 Add nofuse build tag to darwin mounter 2015-03-05 18:00:45 +02:00
91ab1401ab Fix nofuse build tags syntax 2015-03-05 18:00:36 +02:00
e55aaf3f83 nofuse: better help description for 'ipfs mount' 2015-03-05 01:24:17 +01:00
66f1035d93 simple nofuse build tag to allow freebsd compilation and maybe pave the way towards windows as well 2015-03-05 01:24:17 +01:00
607468a96d beautify 'ipfs ls' and 'ipfs object links' (updates #799) 2015-03-01 14:03:51 +01:00
3c8a391fe4 dont put wantlist getter in exchange interface 2015-02-27 00:12:21 -08:00
98a183d53e fix output formatting on stat 2015-02-27 00:12:21 -08:00
b514478f32 rename wantlist to bitswap, add stat command 2015-02-27 00:12:21 -08:00
559a241566 implement a simple wantlist command to allow the user to view their wantlist 2015-02-27 00:12:21 -08:00
7fb63d7e43 move signing options into a validation checker struct 2015-02-26 22:05:03 -08:00
049b5ad945 make signing dht put records optional 2015-02-26 22:05:03 -08:00
88dea5771d Merge pull request #819 from jbenet/x_net_context_leeroy
update context imports to golang.org/x/net
2015-02-25 03:17:28 -08:00
92d08db7a5 rewrote import paths of go.net/context to use golang.org/x/context
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go

- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo

- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)

Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.

Andrew Gerrand (1):
go.net: use golang.org/x/... import paths

Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.

Damien Neil (1):
context: fix removal of cancelled timer contexts from parent

David Symonds (2):
context: Fix WithValue example code.
net: add import comments.

Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
f51e464a55 Merge pull request #801 from jbenet/feat/get-put-cmds
Implement dht put and get CLI commands
2015-02-25 01:35:38 -08:00
ff30558195 make it easier to create custom dag objects via the CLI 2015-02-23 21:33:38 -08:00
29fe7f03f8 remove unused case 2015-02-23 21:09:16 -08:00
7c0c3c4511 add put and get dht commands to cli 2015-02-23 21:09:16 -08:00
15b181ffe2 return early from add PostRun if error is set 2015-02-19 13:52:30 -08:00
3cda8ca685 teach ipfs refs -r how to use GetBlocks 2015-02-19 03:21:55 +00:00
bbca9a1c37 Fixed 'ipfs block put' panic 2015-02-11 14:56:36 -08:00
140c70d772 document some packages 2015-02-10 22:59:10 +00:00
e384aec2a9 cmds/root: ipfs root text arrangement 2015-02-03 12:17:59 -08:00
10cd499a8b cmds/swarm connect had broken 2015-02-03 05:51:31 -08:00
581c4e558e cmds/id: show self addrs 2015-02-03 05:51:31 -08:00
58f39687cf logs: removed all log.Errors unhelpful to users
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
d13876ffe9 commands/id: version was flipped 2015-02-02 21:05:32 -08:00
b0a1cf0371 ipfs swarm addrs: print out known addresses
this will help us introspect what's going on.
2015-02-02 21:05:32 -08:00