Commit Graph

7575 Commits

Author SHA1 Message Date
Łukasz Magiera
f8b17c68d9 dag: sharness tests for dag-pb put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
0953295ce4 dag: add dag-pb support to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
6bf019aeed dag: cbor input-enc
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
1fa6113028 dag: test --hash option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
7f208ce043 dag: fix git plugin
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
0f234d76ae dag: add option to specify hash
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Jeromy Johnson
a1e923e252 Merge pull request #4134 from clownpriest/trivial
trivial comment update
2017-08-12 12:33:54 -07:00
Arthur Elliott
1c73f2bc75 fix import order
License: MIT
Signed-off-by: Arthur Elliott <clownpriest@gmail.com>
2017-08-09 15:59:29 -04:00
Arthur Elliott
8c0f4bd5df trivial comment update
License: MIT
Signed-off-by: Arthur Elliott <clownpriest@gmail.com>
2017-08-09 15:42:31 -04:00
Jeromy Johnson
3b60666d25 Merge pull request #4073 from icidasset/master
Expose Content-Range header
2017-08-05 12:24:55 -07:00
Jeromy Johnson
542d63461e Merge pull request #4050 from jon-choi/master
README.md: Notes on where to start reading code
2017-08-01 00:07:00 -07:00
Jeromy Johnson
fbdb896105 Merge pull request #4114 from ipfs/fix/add-pipe-error-test
sharness: fix the 'useful error message when adding a named pipe' test
2017-08-01 00:05:13 -07:00
Steven Allen
39197ff8d3 sharness: fix the 'useful error message when adding a named pipe' test
We were removing the file before testing, ignoring the error from stat, and then
grepping for `Error: Unrecognized file type for named-pipe: ` (because nothing
was sent to stdout).

This fix:

1. Changes our stat command to output failed to stdout on failure to ensure that
bugs like this *can't* happen.
2. Checks to make sure stat actually succeeds.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 18:31:40 -07:00
Jeromy Johnson
1ea1e38d53 Merge pull request #4111 from ipfs/fix/4102
gx: update go-libp2p-swarm
2017-07-31 17:52:03 -07:00
Steven Allen
38a9be5a0a gx: update go-libp2p-swarm
fixes #4102 (fixed in go-libp2p-swarm)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 14:04:40 -07:00
Jeromy Johnson
f686b4c88a Merge pull request #3948 from ipfs/feat/addresses-announce
core: make announced swarm addresses configurable
2017-07-31 11:32:59 -07:00
Lars Gierth
952f658ada
core: make announced swarm addresses configurable
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-07-31 13:03:09 +02:00
Jeromy Johnson
8ad3b11b91 Merge pull request #4103 from ipfs/fix/4098
sharness: use test profile
2017-07-30 22:52:37 -07:00
Steven Allen
0ada88637b sharness: use test profile
This:

* Disables mdns and fixes #4098 (iptb nodes already have mdns disabled by
  default).
* Only listens on localhost (although iptb nodes still listen on all).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-30 20:22:41 -07:00
Jeromy Johnson
ef365d0a07 Merge pull request #4106 from ipfs/gx/update-mplex
gx: update deps
2017-07-30 20:21:36 -07:00
Steven Allen
5f3c01a7c1 gx: update deps
This should hopefully fix a lot of our CI problems.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-29 22:14:05 -07:00
Jeromy Johnson
02dc2604b3 Merge pull request #4082 from te0d/feat/commands/add-size
ipfs add: added size to response of `ipfs add` command
2017-07-29 14:49:20 -07:00
Jeromy Johnson
9825e33917 Merge pull request #4089 from ipfs/fix/plugins/go-test
plugin: generate dummy main function in plugin-main shims
2017-07-28 20:04:46 -07:00
Jeromy Johnson
a8c5c04a18 Merge pull request #4094 from ipfs/gx/update-libp2p-stuff
gx: update deps
2017-07-28 18:28:39 -07:00
Steven Allen
0aca2a37e6 sharness: fix #4003 test case
1. Use printf to reliably expand escape sequences by default.
2. grep needs to exit after the first match as we're using HTTP/1.1 (the remote
side will not close the connection after sending the response).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-28 17:21:04 -07:00
Steven Allen
4ef73ee25d bitswap: serialize connect/disconnect notifications over one channel.
Otherwise, we could end up receiving a disconnect notification before a connect
notification (and think we have a connection that we don't have).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:19 -07:00
Steven Allen
28be1d4c58 gx: update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:16 -07:00
Tom O'Donnell (te0d)
f96f6af98f ipfs add: added test case to verify presence of size
Added test case which greps the `ipfs add` api call,
checking that it outputs the added item's size.

License: MIT
Signed-off-by: Tom O'Donnell <todonnell91@gmail.com>
2017-07-27 08:58:41 -04:00
Jakub Sztandera
c59fdccd9f
plugins: generate dummy main function for plugins to fix go#20312
https://github.com/golang/go/issues/20312

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-26 17:09:27 +02:00
Jakub Sztandera
1cc387976b
make: add generated plugin-main shims to CLEAN
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-26 17:07:54 +02:00
Jeromy Johnson
181dd0061c Merge pull request #4053 from Quantomicus/bugfix
Fixes #4003
2017-07-23 12:22:58 -07:00
Jeromy Johnson
2f260ca553 Merge pull request #4081 from ipfs/fix/2478/316432988
remove `-f` flags from calls to init
2017-07-22 23:04:54 -07:00
Tom O'Donnell (te0d)
0a01ffb87f ipfs add: added size to response of ipfs add command
The `ipfs add` command was modified to include the added
node's size as a string. The size is included in the
dagnode info sent over the output channel.

License: MIT
Signed-off-by: Tom O'Donnell <todonnel91@gmail.com>
2017-07-20 13:19:31 -04:00
Jeromy Johnson
c854d2a8ce Merge pull request #4067 from ipfs/gx/update-cbor
gx: update ipldcbor
2017-07-19 13:39:33 -07:00
Steven Allen
87f02e53a7 remove -f flags from calls to init
It doesn't mean anything anymore.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-19 11:46:55 -07:00
Steven Vandevelde
20ad44af1c core/http/gateway: Expose Content-Range header
The `Content-Range` header is necessary for extracting (only)
the metadata of audio files.

License: MIT
Signed-off-by: Steven Vandevelde <icid.asset@gmail.com>
2017-07-19 13:28:33 +02:00
Steven Allen
e8f6486a9c gx: update ipldcbor
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode
objects when constructing them with `WrapObject`. Unfortunately, we rely on this
to canonicalize the object before computing the tree/links.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-17 13:09:08 -07:00
Quantomic
48dcd67dfe Add sharness test
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-17 20:48:16 +02:00
Jeromy Johnson
4c3487017c Merge pull request #4072 from ipfs/fix/dag-put-order
fix determination of 'root' node in dag put
2017-07-16 13:40:38 -07:00
Jeromy Johnson
19e1e0916f Merge pull request #4071 from ipfs/feat/deadc0de
remove some dead code
2017-07-16 03:19:04 -07:00
Jeromy
7f89e09d1e fix determination of 'root' node in dag put
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 03:14:33 -07:00
Jeromy Johnson
88ad00360e Merge pull request #4070 from ipfs/feat/plugin/louder
plugin: make the info about non-executable file in plugins dir and Error log
2017-07-16 02:36:11 -07:00
Jakub Sztandera
f07056f146
plugin: add small comment warning
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:30:15 +02:00
Jakub Sztandera
3f00b589d7
plugin: include empty version of preload.go
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:28:02 +02:00
Jeromy
fe3a4c1772 remove some dead code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 02:27:46 -07:00
Jakub Sztandera
3aa370afe1
plugin: remove debug error log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:18:38 +02:00
Jakub Sztandera
b0d4eac41d
plugin: make the info about non-executable file in plugins dir and Error log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 11:04:25 +02:00
Jeromy Johnson
71bb41771c Merge pull request #4033 from ipfs/feat/git-plugin
plugin: create plugin API and loader, add ipld-git plugin
2017-07-16 02:02:42 -07:00
Jakub Sztandera
c0ee7d68fd
misc: small code style edit
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 10:26:34 +02:00
Jeromy Johnson
f16d94226a Merge pull request #4069 from ipfs/fix/bitswap-stream-hang
Only open a message sender when we have messages to send
2017-07-15 23:28:26 -07:00