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

8965 Commits

Author SHA1 Message Date
11ce0445cb Merge pull request #4840 from ipfs/fix/4837
check arguments after handling help
2018-03-20 09:32:26 -07:00
48f706b0f3 fix(mfs): Directory.Path not working, add test
Credit goes to @ridewindx

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-20 13:55:52 +01:00
781dfa1252 cleanup name publish argument tests
1. Don't bother testing the peer IDs. These commands won't ever use them.
2. Move the `--help` test out from in-between the missing argument tests.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:31:07 -07:00
3bb59efade add sharness test for #4837
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:00:51 -07:00
7824c2cf4e check arguments after handling help
otherwise, we block on required arguments from stdin before processing the help
flag.

fixes #4837

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 15:58:34 -07:00
4bdbe1a993 Merge pull request #4827 from ipfs/fix/4823
pre-populate required arguments from request body
2018-03-18 22:19:15 -07:00
e7d837c019 Remove roadmap.md
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-19 01:55:25 +01:00
ed54f58df7 use prefix in bootstrapWritePeers
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-19 01:36:51 +01:00
4e9a6c7eab add regression test for #4823
for both online and offline mode (tests both the cli and the api)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:50 -07:00
45fd7d213f pre-populate required arguments from request body
This way, we can always assume that indexing a required argument works.

Also:

* test that the command tree doesn't have any obvious bugs (duplicate options,
  arguments in the wrong order, etc).
* simplify the usage ParseBodyArgs.
* remove unnecessary check in the get command.

fixes #4823

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:25 -07:00
958483f6bc Merge pull request #4822 from ipfs/fix/emit-once
fix: use EmitOnce where only single response is to be sent
2018-03-17 11:35:17 -07:00
7f1868aef2 Merge pull request #4826 from ipfs/fix/rm-string-arguments
upgrade commands that used StringArguments
2018-03-17 11:34:58 -07:00
873a9aa2b8 Merge pull request #4825 from ipfs/fix/cmds-stuff
delete dead code
2018-03-17 11:34:30 -07:00
c24a08be2e delete dead code
This code was making it *really* hard to understand the commands code.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-16 20:34:36 -07:00
116269a12b upgrade commands that used StringArguments
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-16 20:06:54 -07:00
ead64854e6 cmd/pubsub: fix pubsub peers format brakage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-17 02:48:27 +01:00
42d1aa5bf7 cmd/pubsub: fix pubsub ls emiting plain strings instead of JSON
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 14:01:37 +01:00
59178057a2 fix: use EmitOnce where only single response is to be sent
Part of #4818

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 10:17:34 +01:00
78097d171d misc: spelling of retrieval
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-15 21:07:22 +01:00
6b67125139 Fix t0063-daemon-init.sh by adding test profile to daemon
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-15 01:06:54 +01:00
682b263f3a Merge pull request #4813 from ipfs/release-0.4.14-rc2
ipfs release 0.4.14-rc2
v0.4.14-rc2
2018-03-13 15:38:24 -07:00
f071e91e6b ipfs release 0.4.14-rc2
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-13 15:11:29 -07:00
b91dfbfec4 exchange: reintroduce info on wantlist update to no connected peer
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-12 23:23:27 +01:00
f8a7683f25 don't warn when trying to send wantlist to disconnected peers
fixes #4439

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-12 23:22:19 +01:00
ba3cd5b38d Merge pull request #4790 from ipfs/fix/tar-eof
tar: fix Go 1.10 breakage
2018-03-12 10:28:18 -07:00
dcd7e6c187 Fix get output path
Minor but important change for platform native output paths

License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-03-12 10:44:31 -04:00
efb74199bf commands/block: don't use default for -f
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 23:44:34 +01:00
e54a4f8dd5 coreapi: var block for errors
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 22:17:27 +01:00
fa0fef336d coreapi: minor doc fixes
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:52:10 +01:00
f218b69e47 coreapi: split the interface into multiple files
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:46:45 +01:00
eff69bbf37 coreapi: don't alias ipld types
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:31:28 +01:00
20b59ec1ec coreapi: move unixfs errors to the top
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:27:21 +01:00
5d2910d5d4 Update broken links
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-03-09 17:17:14 -05:00
8b66077e2a misc: add ai-mirror to excluded branches
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-09 21:50:27 +01:00
27b6367818 misc: add confirmation to archive-branches script
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-09 21:50:27 +01:00
5622cc5bb3 Merge pull request #4772 from ipfs/misc/codeowners
misc: create CODEOWNERS file
2018-03-08 17:47:16 -08:00
1b96ad7327 ci: upgrade Jenkins to Go 1.10
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-08 04:17:47 +01:00
16dad7515b tar: fix Go 1.10 breakage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-08 04:17:47 +01:00
b002acc689 Merge pull request #4759 from ipfs/release-0.4.14
prepare for 0.4.14 release
v0.4.14-rc1
2018-03-06 16:30:04 -08:00
12c22e38a2 add initial changelog for 0.4.14
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-06 15:54:27 -08:00
8785696fbd misc: create CODEOWNERS file
This will cause me being tagged for review of every PR, unless we have
subsystem owners, then they will be tagged for review.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-06 00:49:53 +01:00
c00482ab19 Merge pull request #4727 from ipfs/fix/4726
fix race in TestWantlistClearsOnCancel
2018-03-05 12:28:10 -08:00
13887ff2c7 Merge pull request #4751 from ipfs/feat/safe-cid
Disallow usage of unsafe hashes for reading and adding content
2018-03-05 12:25:26 -08:00
a54402655b Merge pull request #4770 from ipfs/fix/pubsub-stdin
fix pubsub pub reading stdin args
2018-03-05 12:23:40 -08:00
dd40a5a2d5 fix pubsub pub reading stdin args
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
45272790a2 don't reprovide inssecure hashes
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-05 19:38:25 +01:00
60018d3ee8 cid_secuirty: add test for gc
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-05 19:38:25 +01:00
bea666f3cd Merge pull request #4725 from MichaelMure/filesstatlocal
make files stat --with-local return immediately when no data is present
2018-03-05 09:39:34 -08:00
90acbfaae7 dag: diff: check CIDs in base case when comparing nodes
Fixes #4591.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-05 12:22:52 -03:00
f710b31ff4 unixfs: clean path in DagArchive
Fixes #4720.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-04 20:10:19 -03:00