1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

391 Commits

Author SHA1 Message Date
b5ad3be060 feat: improve key lookup
* Support peer IDs encoded as CIDs.
* Support looking up the identity key by peer ID.
2020-03-23 15:40:48 -07:00
07cbba7c40 Fix Typos 2019-12-25 03:12:41 +00:00
3a0d0e817a support async datastores 2019-12-19 00:59:31 -05:00
8c5c933559 chore: ignore pubsub deprecation warnings 2019-12-05 13:26:46 -05:00
c3692a5913 extract the pinner to go-ipfs-pinner and dagutils into go-merkledag 2019-12-02 15:45:44 -05:00
0906d7f3b1 fix (pinning): pin ls traverses all indirect pins. pin ls pin type precedence change - a direct/recursive pin is now labeled as such even if also indirectly pinned. 2019-12-02 13:53:14 -05:00
097b684b42 pin: add context and error return to most of the Pinner functions 2019-11-18 18:32:48 +01:00
bc8a329a74 Update unixfs.go
use sync.Once instead
2019-11-18 17:26:14 +08:00
6a171a0b61 fix issue 6760, adding with hash-only, high CPU usage. 2019-11-15 14:58:59 +08:00
ec748a7b5b Merge pull request #6747 from ipfs/fix/only-hash-leak
fix(coreapi/add): close the fake repo used when adding with hash-only
2019-11-08 10:30:59 +00:00
6155fd17c1 fix bug 6748
ipfs add whit only hash, don't need to announce cid to other peer
2019-11-08 15:12:42 +08:00
e9e32f8ac6 fix(coreapi/add): close the fake repo used when adding with hash-only
fixes #6744
2019-11-04 18:05:35 +00:00
1bcf51e02d Update go-libp2p, fix tests with weak RSA keys 2019-08-23 14:26:20 -07:00
2c222741d1 fix: update for merkledag API changes 2019-07-25 19:26:06 -07:00
41f301a3fd fix: parallel walk in gc & pin ls 2019-07-22 16:43:58 -07:00
9738d81c0c switch to new merkledag walk functions
EnumerateChildrenAsync has been renamed to WalkParallel to reflect the fact
that:

1. It visits the root.
2. It's parallel, not async.

To mirror this change, EnumerateChildren has also been renamed to Walk and now
behaves the same (except that it's not parallel).
2019-07-16 16:34:21 -07:00
3f7927f1d8 Update imports to go-filestore 2019-07-15 15:52:34 +02:00
10de165644 Change to construct provider from go-ipfs-provider 2019-07-03 14:22:55 -07:00
4ead108a80 fix: ensure pin rm takes a lock 2019-06-12 14:59:06 -04:00
bc02a61e7c fix: flush pin on block put 2019-06-12 10:31:39 -04:00
5d468e23ea chore: deprecate go-ipfs-addr 2019-05-31 23:46:11 -07:00
e8c2852179 migrate to go-libp2p-core.
closes #6391

License: MIT
Signed-off-by: Raúl Kripalani <raul@protocol.ai>
2019-05-31 23:23:52 -07:00
6d6ce8fba7 Introduce first strategic provider: do nothing
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
942760b4b7 Merge pull request #6330 from ipfs/fix/obj-put-empty
object put: Allow empty objects
2019-05-14 16:08:18 -07:00
d005ec42b1 object put: detect unexpected fields
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-05-14 23:37:52 +02:00
74c4735b66 object put: allow empty objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-05-14 18:26:47 +02:00
5f64b270f8 cmdkit -> cmds
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
f8c8f383db test(coreapi): use a thread-safe datastore everywhere
fixes https://github.com/libp2p/go-libp2p-kad-dht/issues/321

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 13:54:41 -07:00
e4cf66008f Move option parsing to BuildCfg; fix imports
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
7046626ecc Move pathresolve
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
d35dac70f0 Cleanup core package
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
a54b64bede coreiface: updates for path name refactor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 12:03:37 -07:00
667b7f9927 coreiface: updates for moving path to subpackage
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 12:03:37 -07:00
2e77df04ca coreapi: Update path error handling
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 12:03:37 -07:00
b6098bac7a fix error check in swarm connect
🤦‍♂️

fixes d21bb1eed8 (discussion_r271949856)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-03 15:00:13 -07:00
d21bb1eed8 feat(coreapi): tag all explicit connect requests in the connection manager
This doesn't _stop_ us from cutting these connections but indicates that there's
some hidden usefulness to them.

fixes #6164

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-03 10:01:46 -07:00
74d07eff35 Merge pull request #6156 from ipfs/fix/6139
fix add error handling
2019-03-29 15:31:14 +00:00
470d6ba7a8 commands(add): fix ipfs add --nocopy URL without enabling the filestore
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-29 12:12:38 +00:00
1f293eff1b chore: fix a bunch of issues caught by golangci-lint
Most of these are probably harmless but a few looked like they might actually be
bugs. Most of them are just faulty tests.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-29 11:57:45 +00:00
95906d3201 coreapi: remove Unixfs.Wrap
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-03-25 19:00:51 +01:00
964ef0b2e7 unixfs add: remove StdinName
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-03-21 19:20:24 +01:00
c5b81e918f coreapi: remove hidden file handling in add
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-03-21 19:17:58 +01:00
b8bc26a700 WIP almost working ipfs add
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-03-21 19:17:58 +01:00
332d4aeab1 coreapi unixfs: change Wrap logic to make more sense
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-03-21 19:17:58 +01:00
dde397ebc1 Refactor per code climate rules
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-03-11 09:55:13 -07:00
bfcea27d39 Use offlineProvider when --offline
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-03-08 16:44:28 -08:00
a9b6534687 Provide root node immediately when add and pin add
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-03-08 14:27:43 -08:00
c6d85c2a7d ls: resolve symlinks
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-07 11:10:34 -08:00
81621396a0 fix ls command to use the new coreinterface types
See: https://github.com/ipfs/interface-go-ipfs-core/pull/14

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-07 11:10:34 -08:00
42e191c017 gx: unrewrite
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00