1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00

7469 Commits

Author SHA1 Message Date
3a1d78774c Merge pull request #3993 from ipfs/feat/ptptop2p
Rename PTP to P2P
2017-06-19 13:24:21 -07:00
bec54c2540 Rename PTP to P2P
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-19 21:30:58 +02:00
2f999d4b49 Merge pull request #3975 from Stebalien/fix/3974
pinning + pathresolver: fix pinning/unpinning of sharded directories
2017-06-13 11:46:19 -07:00
8c78d4072d pinning: test pinning/unpinning files in sharded directories
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-12 19:03:24 -07:00
e2cd36e88f pinning + pathresolver: fix pinning/unpinning of sharded directories
* Change ResolveToCid to take a Resolver and a NameSystem instead of an ipfs
  Node.
* Make the pin/unpin methods use a Unixfs path resolver.

Closes: #3974

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-12 18:12:29 -07:00
8ec0814a89 Merge pull request #3968 from ipfs/deps/iptb-1.2.0
update to iptb with better errors
2017-06-11 14:38:43 -07:00
4fe7fb891b Merge pull request #3969 from ipfs/fix/shutdown-test
fix shutdown check in t0023
2017-06-11 12:35:25 -07:00
c4f36071da fix shutdown check in t0023
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-06-10 11:32:46 -07:00
4cf4b43911 update to iptb with better errors
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-06-10 11:07:16 -07:00
77c5f56178 Merge pull request #3966 from torresashjian/fix/cmds/dht-findprovs-num
Add 'ipfs dht findprovs --num-providers' to allow choosing number of providers to find
2017-06-10 10:24:24 -07:00
10f9e771f7 Merge pull request #3951 from ipfs/kevina/repub
Make sure non-self keys also get republished
2017-06-10 10:17:10 -07:00
1fe6e18d44 repub: remove unused field
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-10 01:55:04 -04:00
bfc9eecb17 Use long name for option lookup
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 21:56:25 -07:00
c6b37e6e22 Allow the use of the Range header in WebTorrent (#3929)
* Allow the use of the Range header in WebTorrent

License: MIT
Signed-off-by: Ivan386

* Allow the use of the Range header in WebTorrent

License: MIT
Signed-off-by: Ivan <ivan386@users.noreply.github.com>
2017-06-09 19:56:56 -07:00
18d2a2d8f4 Merge pull request #3943 from magik6k/feat/corenet2
Implemented experimental ptp(corenet) interface
2017-06-09 19:56:02 -07:00
3b04599bf1 Merge pull request #3954 from ipfs/feat/docker-ws
docker: expose port 8081 for /ws listener
2017-06-09 19:54:21 -07:00
9e11a41758 Add option to choose a specific number of providers to search for
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>

Apply fmt

License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>

Add format

License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 17:54:53 -07:00
67828a4b4f Merge pull request #3963 from ipfs/feat/gateway-go-get
gateway: don't redirect to trailing slash if it's go get
2017-06-08 21:00:22 -07:00
1a1935f975 Merge pull request #3964 from MichaelMure/filestore_root
Filestore: more verbose error when adding a file from outside of the root
2017-06-08 20:46:23 -07:00
73010ff593 Filestore: more verbose error when adding a file from outside of the root
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-06-08 16:20:14 +09:00
4fe5b3eab7 gateway: don't redirect to trailing slash if it's go get
This enables `go get` to parse go-import meta tags from index.html
files stored in IPFS. One tiny step toward whyrusleeping/gx-go#2.

For an import like `ipfs.io/ipfs/QmFoo/mypkg`, the gateway would
previously redirect to `/ipfs/QmFoo/mypkg/` (note the trailing slash),
which the `go get` tool can't deal with.

Thankfully, `go get` sets a URL query parameter (`?go-get=1`) which
we can use to switch off the redirect in this case.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-06-08 03:23:48 +02:00
d674dd7e1f repub: iterate through all keys in keystore
Iterate through all keys in the keystore so keys added with
"ipfs key gen" behave the same as the <self> key.  Don't maintain a
separate repub list as it does not really serve a purpose at this
point in time.  See #3808.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-07 14:35:44 -04:00
043aa5f308 PTP API: Address review comments
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-07 19:51:44 +02:00
eef022cd5e Merge pull request #3949 from zramsay/fix/codebase-consistency
apply the megacheck code vetting tool for idiomatic go
2017-06-06 19:54:15 -07:00
90287f3b3c Added info on compiling on FreeBSD. (#3959)
License: MIT
Signed-off-by: Laurence Stevens <laurencebelastevens@gmail.com>
2017-06-06 19:52:40 -07:00
104268f1b6 PTP API: Make code more object oriented, use less node
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-04 03:08:39 +02:00
ad9ae350bf PTP API: Rename Corenet to PTP
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-03 21:46:16 +02:00
6c064d1fc3 bugfix: copy the correct variable
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-02 23:59:54 -04:00
eac71847bd Corenet API: Move more logic away from commands
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-02 21:44:38 +02:00
edbb42b712 docker: expose port 8081 for /ws listener
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-06-02 03:42:36 +02:00
e66e8bbe96 Corenet API: Review fixes
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-01 20:11:46 +02:00
b77d5aa13d hamt: reinstate a useful debug function
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 14:04:30 -04:00
ae4cad3ff3 make: use correct location for [test_go_megacheck]
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 14:04:30 -04:00
0b584587cc codeclimate: use only 4/5 defaults
because context.TODO() is a legit function

License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 14:04:23 -04:00
096b3232d5 address PR comments; remove commented/dead code
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 12:13:04 -04:00
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
f9ba45d2eb introduce 'make megacheck'
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:40:55 -04:00
e0bd4a1188 Corenet API: Fix codeclimate issues
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 15:18:39 +02:00
a3889a7164 Corenet API: Update deps
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 12:35:31 +02:00
71bda3d988 Corenet API: Drop 'exp' namespace
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
8948519590 Corenet API: Store state in node
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
fc08d5331b Corenet API: Apply suggestions, cleanups
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
69d3e08776 Corenet API: Some more tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
9414e73c34 Corenet API: Split list subcmd into ls/streams
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
ad1dc5f405 Corenet API: Use simple util instead of socat for tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
a55255fbca Corenet API: Fixed tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
2f17a67c5a Experimental corenet application support.
License: MIT
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-05-31 11:33:17 +02:00
20dae521ef Merge pull request #3945 from ipfs/gx/update-e9zqg7
gx: update go-libp2p-peerstore, go-libp2p, go-libp2p-kbucket
2017-05-29 18:42:43 -07:00
64ced367ac gx: update go-libp2p-peerstore, go-libp2p, go-libp2p-kbucket
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-05-30 02:26:05 +02:00
c7462acc9b Merge pull request #3843 from ipfs/kevina/pin-verify
"pin verify".
2017-05-25 14:12:16 -07:00