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

4816 Commits

Author SHA1 Message Date
3eea954a78 Merge pull request #1784 from ipfs/improve-t0081
t0081: swap test_cmp arguments
2015-10-03 17:58:31 -04:00
1b795013ca Merge pull request #1773 from ipfs/feat/no-symlink
replace imports with absolute path instead of using symlink
2015-10-03 17:56:34 -04:00
0e382c9548 Merge pull request #1780 from ipfs/dev-notes
add some notes on how to hack on go-ipfs
2015-10-03 17:55:56 -04:00
5686762055 t0081: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:49:01 +02:00
8f0623255d replace imports with absolute path instead of using symlink
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
9f4c5e9d0a add some notes on how to hack on go-ipfs
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:17:49 -04:00
7e69146933 Merge pull request #1775 from ipfs/fix/ipns-old-record
fix publish fail on prexisting bad record
2015-10-02 18:08:56 -04:00
b34d41e01e fix publish fail on prexisting bad record
dont error out if prexisting record is bad, just grab its sequence number
and continue on with the publish.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-02 14:59:31 -07:00
5b2d2ebdd6 Merge pull request #1739 from ipfs/ipns/patches
Ipns/patches
2015-10-01 15:55:36 -04:00
3b9ad30005 Addressing comments from CR
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 22:50:50 -07:00
e5512b4115 make publish more configurable and add test for repub
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
e202c6592f vendor in iptb and kingpin
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:02 -07:00
815a031f59 Implement ipns republisher
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
235a9ec5fc Fix dht queries
Queries previously would sometimes only query three (alpha value) peers
before halting the operation. This PR changes the number of peers
grabbed from the routing table to start a query to K.

Dht nodes would also not respond with enough peers, as per the kademlia
paper, this has been changed to from 4 to 'K'.

The query mechanism itself also was flawed in that it would pull all the
peers it had yet to query out of the queue and 'start' the query for
them. The concurrency rate limiting was done inside the 'queryPeer'
method after the goroutine was spawned. This did not allow for peers
receiver from query replies to be properly queried in order of distance.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
cfcc3d6a1b ipns record selection via sequence numbers
This commit adds a sequence number to the IpnsEntry protobuf
that is used to determine which among a set of entries for the same key
is the 'most correct'.

GetValues has been added to the routing interface to retrieve a set of
records from the dht, for the caller to select from.

GetValue (singular) will call GetValues, select the 'best' record, and
then update that record to peers we received outdated records from.
This will help keep the dht consistent.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:41 -07:00
81c64768c5 Merge pull request #1760 from MichaelMure/missing_new_line
Add a new line in the output of ipfs log level
2015-09-27 21:57:16 -04:00
f9af496ae8 Add a new line in the output of ipfs log level
License: MIT
Signed-off-by: Michael Muré <mure.michael@gmail.com>
2015-09-27 19:08:23 +02:00
0020918465 Merge pull request #1759 from rht/cleanup-coreunix
Cleanup coreunix cat
2015-09-27 10:49:22 -04:00
rht
a7f43de5f2 Cleanup coreunix cat
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-27 17:13:34 +07:00
ce20cf9954 Merge pull request #1755 from sroerick/patch-1
added docker file permission instructions.
2015-09-27 04:11:02 -04:00
4a0725fe2e added docker file permission instructions again
I screwed up my initial commit, so here goes again. That's what i get for using the github gui...

I added the instructions to make the ipfs_data and ipfs_staging globally readable, which prevents permission errors.

It may be better to limit permissions in some way, to prevent potential security risks.

License: MIT
Signed-off-by: sroerick sweeney@roerick.me
2015-09-27 02:06:53 -06:00
a26ad22434 Merge pull request #1757 from ipfs/shell-quote
ipfs-test-lib: add shellquote()
2015-09-27 03:29:37 -04:00
1bd182055b ipfs-test-lib: add shellquote()
This function can be usefull in many places.

See for example:

https://github.com/ipfs/go-ipfs/pull/1742

Git has `git rev-parse --sq-quote` that does the same thing.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-27 09:11:25 +02:00
08e06764c8 Merge pull request #1742 from ipfs/test/gz
Sharness: add test for compression level
2015-09-26 18:36:36 -04:00
279328c26b added docker file permission instructions. 2015-09-25 19:59:32 -06:00
7244c0443a Merge pull request #1743 from ipfs/dht-key-escape
allow for dht keys to be escaped
2015-09-25 19:54:05 -04:00
4ac2c46c6a Merge pull request #1752 from ipfs/feat/stat-count
allow bitswap stat to return total number of bytes wasted
2015-09-25 18:51:31 -04:00
d3b873ccca Merge pull request #1753 from ipfs/fix/api-file
write correct address to api file
2015-09-25 18:43:41 -04:00
c3e72377b2 write correct address to api file
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 15:34:54 -07:00
0c7421643d allow bitswap stat to output wasted bytes
bitswap stat can now track bytes that are wasted by receiving duplicate
blocks.

ps, gitcop smells

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 14:40:46 -07:00
5b9811371c Merge pull request #1749 from mjanczyk/master
Fix #1661 IPFS crashes on windows after first run
2015-09-25 16:07:37 -04:00
7ba85c6ee0 Merge pull request #1732 from WeMeetAgain/fix-http-api-content-type
remove hard-coded json content-type for streaming http output
2015-09-25 16:07:05 -04:00
20908b3072 Detect connection refused errors during API test on Windows
The first run does not try to connect to API, as an address is not
yet saved in configuration. The second run did not recognize
corrently a refused connection.

Fixes #1661.

License: MIT
Signed-off-by: Marcin Janczyk <marcinjanczyk@gmail.com>
2015-09-25 08:37:10 +02:00
9634b25b63 remove hard-coded json content-type for streaming http output
There was a stale assumption that streaming output from a channel would
always be json.
This commit removes that code, allowing Content-Type to appropriately be
set like other, non-channel-streaming commands.

License: MIT
Signed-off-by: Cayman Nava <caymannava@gmail.com>
2015-09-24 19:13:29 -07:00
ce11ed5e23 Merge pull request #1745 from ipfs/doc/patch-data
document the set-data and append-data commands in patch
2015-09-24 17:39:51 -04:00
2492f0cb38 document the set-data and append-data commands in patch
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 12:43:37 -07:00
d01ee1111f better parsing logic for dht keys containing prefixes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 09:27:00 -07:00
rht
43dbd1cdb9 Sharness: add test for compression level
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-23 19:08:26 +07:00
9c6ec296e3 Merge pull request #1704 from klauspost/use-compression-level
Fix gzip compression level not being set.
2015-09-23 04:19:54 -07:00
e812abbc66 Merge pull request #1734 from ipfs/feature/contribute-md
Added a Contribute file
2015-09-21 14:10:03 -04:00
3501aff032 Added a Contribute file
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2015-09-21 14:07:58 -04:00
c6166e5aa0 Merge pull request #1622 from ipfs/feat/rm-worker
dont need blockservice workers anymore
2015-09-16 01:52:58 -04:00
63f72a5155 remove context from HasBlock, use bitswap process instead
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:42 -07:00
47b85c7bc3 dont need blockservice workers anymore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:26 -07:00
889603f11f Merge pull request #1709 from ipfs/godep-update
Godep update
2015-09-15 20:48:02 -04:00
35a5ca0ef5 update go-datastore to latest
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:15:29 -07:00
973c5fa0a4 update go-peerstream to newest version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 16:09:23 -07:00
c77a96fef8 Merge pull request #1703 from Luzifer/signals
Use exec to start IPFS daemon
2015-09-15 18:20:53 -04:00
46e888bdfc Merge pull request #1701 from ipfs/feat/extract-logging
extract logging
2015-09-15 13:05:31 -04:00
4b81d9e85e Fix gzip compression level not being set.
If "compression-level" is set, the compression is set to gzip.Nocompression.

License: MIT
Signed-off-by: Klaus Post <klauspost@gmail.com>
2015-09-15 12:12:11 +02:00