Commit Graph

7954 Commits

Author SHA1 Message Date
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
Jeromy
39e9328e47 ensure testnet peers get evenly connected mesh
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-15 22:37:50 -07:00
Jeromy
a93b44b226 Only open a message sender when we have messages to send
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-15 20:18:17 -07:00
Quantomic
049bca6d09 bandaid it instead
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-14 20:09:55 +02:00
Jakub Sztandera
3e8e03939f
fix typo
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 16:46:22 +02:00
Jakub Sztandera
b5ea00e6b4
sharness: add debug output for TEST_NO_PLUGIN
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 13:23:14 +02:00
Jakub Sztandera
2df61862ac
coverage: disable plugin tests during sharness coverage collection
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 12:18:56 +02:00
Jakub Sztandera
36cbfa416d
coverage: add dependency on DEPS_GO for coverage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 11:45:53 +02:00
Jakub Sztandera
fb618a28e7
plugin: fix typos
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 10:05:53 +02:00
Jakub Sztandera
6da6e7756e
plugin: fix plugin loading
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 23:02:13 +02:00
Jakub Sztandera
b135a1fa86
misc: add go fmt to main packages of plugins
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 22:05:31 +02:00
Jakub Sztandera
be5ee0b280
Disable ipldgit preload
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 22:03:33 +02:00
Jakub Sztandera
314d2c3113
misc: make codecov really happy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:59:01 +02:00
Jakub Sztandera
e293de17eb
plugin: fix error when plugins dir does not exist
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:57:40 +02:00
Jakub Sztandera
c569b0be8a
plugin: make the plugin preload work again
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 21:16:04 +02:00
Jakub Sztandera
b0679728f0
make codeclimate more happy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:49:11 +02:00
Jakub Sztandera
42b0ba345f
fixup plugin loading
they have to be a main package

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:42:21 +02:00
Łukasz Magiera
f947931af9 git: add git plugin tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-12 23:38:32 +02:00
Jakub Sztandera
d6657edf59
make codeclimate a bit more happy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:08:41 +02:00
Jakub Sztandera
cfad460827
git: make gitPlugin struct private
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:03:15 +02:00
Jakub Sztandera
04b26fe089
make: fix buildmode=plugin and pkgdir problems
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:01:45 +02:00
Jakub Sztandera
2c71cf0fd7
test: add git plugin test stub
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
d2cc708650
make(sharness): add plugins as part of sharness build
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
d6f280ecec
make: fix megacheck being run on help print
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00