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

7469 Commits

Author SHA1 Message Date
6f815b1568 Add a Has(name) method to the keystore
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-04 17:29:29 +09:00
fca98aea9d add sharness tests
test for `ipfs name publish` using PeerID as key name

License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-05-03 06:19:30 +03:00
6a25b67e4d Fix typo in message when file is not determined
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-05-01 20:59:08 -07:00
a813830657 Enable stdin for ipfs key rm's name argument
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 12:27:15 +09:00
d59554a720 Merge pull request #3891 from ipfs/feat/0.4.9rc1-changelog
Update changelog and bump version for 0.4.9-rc1
v0.4.9-rc1
2017-05-01 15:11:16 -07:00
9d166b0aa1 Update changelog and bump version for 0.4.9-rc1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-01 14:37:00 -07:00
bd96f71d2c Make ipfs key rm variadic
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:47:13 +09:00
730ab6115c fix fmt and exported var that shouldn't be
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:46:56 +09:00
4d4d7b8e08 Implement ipfs key rm
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-01 15:23:17 +09:00
f44ff30e89 Merge pull request #3880 from kpcyrd/docs/openbsd
Fix install_unsupported for openbsd, add docs
2017-04-30 21:57:55 -07:00
76cd541040 Merge pull request #3888 from ipfs/fix/add-mem-growth-hack
Flush cached directories every so often during an add
2017-04-30 21:56:49 -07:00
119ae72400 Merge pull request #3890 from ipfs/fix/sharding-issues
Fix sharding memory growth, and fix resolver for unixfs paths
2017-04-30 21:54:49 -07:00
a22cae1bce fix coreapi unixfs resolving
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 21:20:48 -07:00
0597a04924 Fix sharding memory growth, and fix resolver for unixfs paths
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 13:48:28 -07:00
92f11776a4 Merge pull request #3889 from ipfs/fix/gateway-view-shard
Fix gateway handling of sharded directories
2017-04-29 14:25:13 -07:00
b71ef8354e Fix gateway handling of sharded directories
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-29 13:01:22 -07:00
e2b2d0996f Flush cached directories every so often during an add
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-29 12:27:09 -07:00
76e227d499 code review improvements
change core.IpfsNode as first arg

check keylookup err to propagate validation errors from lower levels

License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 21:00:48 +03:00
39ece86484 add PeerID lookup
enhance key lookup logic and enable PeerID lookup in addition to the
key name

License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 19:45:18 +03:00
e5529cd57b Merge pull request #3743 from ipfs/kevina/cidv1-add
Add support for using CidV1 in 'ipfs add'
2017-04-26 18:54:45 -07:00
4f98f8fa3b Link docs/openbsd.md in readme
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-04-27 01:06:32 +02:00
720ced12b9 Fix install_unsupported for openbsd, add docs
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-04-27 01:02:42 +02:00
095230ee60 Merge pull request #3879 from kpcyrd/dist_get_fix
dist_get: handle 404 correctly
2017-04-26 15:49:16 -07:00
49b90a0754 dist_get: handle 404 correctly
This prevents a 404 page getting piped into tar.

It's also adding the openbsd http(s) client `ftp`.

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-04-27 00:28:44 +02:00
213358b1e4 Merge pull request #3876 from dgrisham/master
bug fix: Bitswap now records 'BytesSent' in ledger
2017-04-26 09:15:57 -07:00
a34c5eac5b Merge pull request #3877 from ipfs/feat/update-cbor
deps: bubble up cbor update
2017-04-25 21:58:35 -07:00
9350c513f1 Documentation
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:47:48 -04:00
8a47786c67 hamt: support using CIDv1 by allowing the prefix to be set
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:41:25 -04:00
076d0bd9b1 merkeldag: change SetPrefix param to a pointer and reset the prefix on nil
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
518adec022 adder: add support for using CidV1
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
126d249de5 deps: bubble up cbor update
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-26 05:21:01 +02:00
9b58fa773a merkledag: provide better diagnostics when Prefix.Sum fails
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
cf562403d2 adder: make chan size a constant
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
b7eae36f90 adder: fix bug where errors from calls to NewAdder caused daemon to hang
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
4789a622b2 tests: bitswap ledger tests modified
Updated the `TestBitswapLedger*` tests and added assertions to check concrete
values for ledgers (rather than just checking that two peers' ledgers match).
The names for these tests were also changed from the previous commit, according
to 's/BytesSent/Ledger/'.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
74e19eae62 tests + data dependency fix: BytesSent bug now completely fixed
Tests were added to ensure that the bug fix in commit 000fbd25 was correct.
The tests caught an error where a peer's ledger was not properly locked when
updating it in the `MessageSent()` function. The appropriate calls to lock the
ledger were made, and the tests successfully passed.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
0514504d09 bug fix: BytesSent in peers' ledgers now updates
When sending data to another user, the number of bytes sent to that user (saved
by the corresponding Bitswap ledger) was not updated (it was always 0). This
also meant that the debt ratio was also always 0.

The function that updates the `BytesSent` value in the ledger, `MessageSent()`,
was already implemented, however it was not called when the peer was sent data.
To fix this, a call to `MessageSent()` was made in the `taskWorker()` function,
which is where both the message in question and the Bitswap engine were
available to make the call. `MessageSent()` requires the peer's ID and
`BitSwapMessage` as its arguments, the latter of which had to be created by
making a new `BitSwapMessage`, then the block being sent was added to the new
message.

Note that, similar to the analagous call to `MessageReceived()`, records *all*
of the bytes sent to a particular user. At some point, both of these should be
updated to only record the numbers of *useful* bytes sent and received between
peers.

License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
2017-04-25 20:16:37 -06:00
e17a6dd803 Merge pull request #3873 from ipfs/deps/update/go-is-domain
deps: Update go-is-domain to contain new gTLD
2017-04-24 11:06:13 -07:00
fe969d18be mics: cleanup imports in touched files
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
d1e3fc5c87 deps: Update go-is-domain to contain new gTLD
It should resolve issues with newer gTLDs being not selected

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
9dc5883ac8 Merge pull request #3833 from ipfs/deps/go-multihash
bubble up updates from go-multihash changes
2017-04-21 11:46:59 -07:00
b15470d548 bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
b3c20aadeb Merge pull request #3869 from Recmo/fix/gateway/3868-etag
gateway: use CID as an ETag strong validator
2017-04-20 11:12:21 -07:00
584ab144f9 Merge branch 'master' into fix/gateway/3868-etag 2017-04-20 19:59:59 +02:00
87d07a9750 Merge pull request #3870 from ipfs/fix/directory-cache-control
gateway: fix erroneous Cache-Control: immutable on dir listings
2017-04-20 10:37:58 -07:00
a90f4967e3 gateway: re-use resolved path
Instead of resolving a node, we resolve a path. This resolved path
is then re-used for Cat and Ls. This way, a resolve operation is
only done once.

The error messages for a failed resolve is changed from `ipfs cat …`
to `ipfs resolve …` to better reflect the API calls. The test is
updated accordingly.

License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-20 08:17:45 +01:00
2c4e6434ad gateway: fix erroneous Cache-Control: immutable on dir listings
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-19 05:10:41 +02:00
8db6f86de6 gateway: use CID as an ETag strong validator
* Always use the fully resolved CID from api.ResolveNode
  as the ETag (also for IPNS).

* Format the result as a valid "Strong Validator"
  (double quotes around the encoded CID).

Fixes #3868

License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-18 16:24:37 +01:00
db43aab00b Merge pull request #3863 from timthelion/fix/commit-hook-link
Fix link to commit hook script in contribute.md
2017-04-16 23:58:34 -07:00
cbed629929 Merge pull request #3850 from ipfs/keks-restore-err-order
commands: restore original error order
2017-04-16 23:58:12 -07:00