1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-15 03:03:08 +08:00

69 Commits

Author SHA1 Message Date
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
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
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
13de031b44 code cleanup and better naming of methods 2015-03-24 12:23:01 -07:00
50f0b06bdf Correct pinning for dagmodifier, and a bunch more tests 2015-03-11 19:38:01 -07:00
5ead2a9fab overwrite optimization for dagmodifier 2015-03-11 19:38:01 -07:00
370285fcfa remove temp code in Coal test, and make Size not have to flush 2015-03-11 19:38:01 -07:00
218cc0185c remove pointless TODO 2015-03-11 19:38:01 -07:00
3119088ae7 address comments from @cryptix in PR 2015-03-11 19:38:01 -07:00
58d5c852fd add benchmark 2015-03-11 19:38:01 -07:00
136bece850 Code cleanup 2015-03-11 19:38:01 -07:00
9832545d84 better error message from dagreader with bad protofbuf 2015-03-11 19:38:01 -07:00
63e15abd8f refactor dagmodifier to work with trickledag format 2015-03-11 19:38:01 -07:00
1d5b903611 added cancel func calls previously ignored 2015-03-07 09:31:46 -08:00
0e9772c57e refactoring unixfs node and importer/helpers to match 2015-03-06 22:12:03 -08:00
5b5d3221fd don't depend on go-logging - use it through util instead. 2015-02-27 14:19:08 +01: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
ccb693ab4d teach unixfs/tar (aka ipfs get) how to use GetBlocks 2015-02-18 09:00:01 +00:00
bbcdeb74d2 fix: vendor 2015-02-04 15:32:49 -08:00
b79fffc965 implement metadata node for unixfs and other 2015-02-04 23:07:12 +00:00
1e93ee00c0 clean up benchmarks, implement WriterTo on DAGReader, and optimize DagReader 2015-02-04 21:59:51 +00:00
fcd8ebcca5 NewDagReader: return DagReader for more functions
Since the DagReader has lots of useful information (like sizes etc)
it's good to be able to use it.
2015-02-01 19:24:36 -08:00
73234479fa init docs: go generated welcome dir + files
updated sharness hashes
2015-01-31 07:51:30 -08:00
abb3c9c9c4 implement path type 2015-01-29 17:51:08 +00:00
2eca66e6d2 off by one error seeking to end of single block file 2015-01-27 07:41:51 +00:00
4940c3e0ae Merge pull request #655 from jbenet/feat/dagseek
Implement io.Seeker on unixio.DAGReader
2015-01-26 19:33:41 -08:00
45e4352c9c dropped down log.Errors 2015-01-26 19:13:44 -08:00
ba4ea139b9 address concerns from PR 2015-01-27 01:33:09 +00:00
0023cb3097 refactor and clean up dagreader 2015-01-27 01:33:09 +00:00
26826bd55e implement seeking in the dagreader 2015-01-27 01:33:09 +00:00
5292617290 unixfs/tar: Rename p to gopath 2015-01-26 17:02:48 -08:00
5a60b7b2e7 unixfs/tar: Use current date for file timestamps 2015-01-26 16:57:55 -08:00
6c854ce897 unixfs/tar: Ignore /ipfs/ in path 2015-01-24 21:40:19 -08:00
41d5c822d7 core/commands: get: Place files at root of TAR when using a multi-element ipfs path 2015-01-24 21:40:19 -08:00
16c45a7587 unixfs/tar: Fixed reader not properly buffering headers 2015-01-24 05:35:05 -08:00
fe48ae2dd6 Extracted TAR archive building/reading code out of 'ipfs get' 2015-01-24 03:06:25 -08:00
edd7062c56 mark ipns as readonly 2015-01-10 01:22:44 -08:00
e3cf893616 implement recursive indirect blocks
improve efficiency of multilayered indirect blocks

clean up tests

panic cleanup

clean up logic, improve readability

add final root node to the dagservice upon creation

importer: simplified dag generation

test: updated hashes using latest code

@whyrusleeping this is why the sharness tests
were failing: the hashes are added manually to
make sure our generation doesn't change.

cleanup after CR

fix merkledag tests

fix small block generation (no subblocks!)
2015-01-06 19:43:56 +00:00
670d0244b4 feat(bitswap) make offline exchange query datastore
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 23:31:01 -08:00
3a6b6c6974 cleanup, use a workgroup over channels 2014-12-05 20:53:32 +00:00
f0a4fdad59 some bitswap cleanup 2014-12-05 20:53:32 +00:00
bef75d5061 fix(bitswap/testutils) vendor
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
ed4509923c tracking down a bug dhthell found, added asserts and better logging. 2014-12-05 20:53:26 +00:00
15d4f82945 some cleanup, and fix minor bug in dagreader from previous commit 2014-12-05 20:53:26 +00:00
d53deebada wire GetBlocks into blockservice 2014-12-05 20:53:26 +00:00
0ce6071fea revamp BatchFetch a bit 2014-12-05 20:53:25 +00:00
d0304def6b refactor(blockstore, blockservice) use Blockstore and offline.Exchange
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:24 +00:00
8c20921a95 some more docs 2014-11-08 21:42:36 -08:00
2e2d02a741 probably fix OSX ipns bug 2014-11-07 14:13:11 -08:00