Steven Allen
521a29956b
fix and improve the writable gateway
...
1. Fix handling of PUT. The simple implementation was the correct
implementation, I have no idea what was going on here.
2. Use MFS everywhere to reduce code duplication and add support for sharded
directories.
3. _Correctly_ block IPNS.
4. Remove the dependency on `core.IpfsNode`.
5. Remove support for putting empty directories with a well-known CID. It was
useless as directories are automatically created.
2019-07-25 19:22:56 -07:00
Steven Allen
9738d81c0c
switch to new merkledag walk functions
...
EnumerateChildrenAsync has been renamed to WalkParallel to reflect the fact
that:
1. It visits the root.
2. It's parallel, not async.
To mirror this change, EnumerateChildren has also been renamed to Walk and now
behaves the same (except that it's not parallel).
2019-07-16 16:34:21 -07:00
Steven Allen
7256af5969
readme: fix CI badge
2019-07-16 09:51:16 -07:00
Łukasz Magiera
02f7bc8ced
Fix build with go-filestore
2019-07-15 16:02:29 +02:00
Łukasz Magiera
3f7927f1d8
Update imports to go-filestore
2019-07-15 15:52:34 +02:00
Łukasz Magiera
cb4ca03218
mod: Import extracted filestore
2019-07-15 15:50:14 +02:00
Steven Allen
4f6d6e11fe
dep: update go-multiaddr-dns
...
fixes #6485
2019-07-09 15:21:54 -07:00
Steven Allen
70e499afbc
Merge pull request #6421 from ipfs/chore/extract-provider
...
Extract provider module to `go-ipfs-provider`
2019-07-03 16:33:53 -07:00
Michael Avila
72fef7f529
Update to provider with timestamp based queue
2019-07-03 16:26:11 -07:00
Michael Avila
20c8c85e2d
Add go-ipfs-provider as dependency
2019-07-03 14:21:24 -07:00
Steven Allen
074305690a
fix: ignore stale APIs
...
fixes #5784
2019-06-29 11:17:38 +02:00
Steven Allen
5d29073925
dep: pull in latest go event bus
...
There was a panic in the old version.
2019-06-28 06:26:35 +02:00
Steven Allen
d3d5db2657
dep: fix badger version
...
revert to v1.6
2019-06-28 06:25:36 +02:00
Steven Allen
7889932ae9
dep: update swarm/maddr-filter
...
Reduces allocations/CPU when handling many inbound connections.
2019-06-27 18:14:15 +02:00
Jakub Sztandera
4db0ce7385
dep: update go-libp2p@0.2.0 to fix go-libp2p-core breakage
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-24 16:29:59 +02:00
Jakub Sztandera
a7f8d69008
Update go-ds-badger
...
Use replace to require go-libp2p-core@0.0.3
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-21 17:34:24 +02:00
Steven Allen
131a5eea6f
dep: update go-bitswap and go-libp2p-kad-dht
...
Reduces long-term allocations.
2019-06-19 11:42:46 +02:00
Steven Allen
aa06693e12
dep: update bitswap
...
fixes a critical panic
2019-06-14 10:21:32 -07:00
Steven Allen
0cd712a85f
dep: update go-bitswap
...
fixes #6442
2019-06-12 17:30:07 -07:00
Steven Allen
0b36aa0a35
Merge pull request #6414 from ipfs/build/update-bindata
...
assets: move away from gx
2019-06-12 09:12:21 -07:00
Devin
f9e9f2854b
Fix a typo
2019-06-11 15:41:51 -07:00
Steven Allen
3883dfe450
assets: move away from gx
...
1. Use a submodule for dir-index-html. This isn't a go dependency and treating
it like one is more trouble than it's worth. We don't actually need to
checkout the submodule unless we need to regenerate the assets.
2. Avoid a runtime dependency on dir-index-html (may shave a few bytes off the
final binary?).
3. Remove unused code.
4. Avoid bundling unused files.
5. Switch to a maintained version of go-bindata.
6. Use go mod to manage go-bindata.
2019-06-11 15:36:47 -07:00
Hector Sanjuan
98a508fdd1
Deps: update go-libp2p-http to its new libp2p location
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-06-08 00:51:18 +02:00
Steven Allen
0f66869233
fix: fixed go-ipfs-config
2019-06-01 16:05:19 -07:00
Steven Allen
5d468e23ea
chore: deprecate go-ipfs-addr
2019-05-31 23:46:11 -07:00
Raúl Kripalani
e8c2852179
migrate to go-libp2p-core.
...
closes #6391
License: MIT
Signed-off-by: Raúl Kripalani <raul@protocol.ai>
2019-05-31 23:23:52 -07:00
Michael Avila
6d6ce8fba7
Introduce first strategic provider: do nothing
...
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Steven Allen
23d35184c3
fix: use http.Error for sending errors
...
This sets a few headers that prevent browsers from misinterpreting the error
text.
2019-05-25 10:45:17 -07:00
Steven Allen
72941102dc
fix race between adding tags and registering services with the connection manager
...
Hopefully helps fix #6271 and a bunch of other related issues.
2019-05-23 09:50:22 -07:00
Steven Allen
e50a8c8c05
fix: disable stream muxer write coalescing
...
See: https://github.com/libp2p/go-libp2p/issues/644
2019-05-23 09:20:47 -07:00
Steven Allen
492baf0d69
ci: update golangci-lint to the latest master
...
The current version has some build issues.
2019-05-22 13:41:14 -07:00
Steven Allen
7fde2f178a
remove yamux read buffer
...
Accidentally added in #6361 . The yamux transport now disables this globally by
default.
2019-05-22 13:28:00 -07:00
Steven Allen
6225024751
dep: update yamux and bitswap
...
* yamux: reduce goroutines per connection from 3 to 2.
* bitswap:
- fix a very slow memory leak
- adds an option for disabling providing (unused for now)
- fixes a race condition on start
- tag peers with outstanding requests in the connection manager
2019-05-22 12:52:30 -07:00
Steven Allen
1eb701fd75
dep: update go-libp2p
...
* Write coalescing in yamux and mplex.
* Correctly tag relay streams.
* Reset relay streams instead of closing them. Fixes #6237 .
* Trim connections in a background task instead of on-connect.
2019-05-22 11:55:32 -07:00
Steven Allen
cf3b6c43d2
Merge pull request #6355 from ipfs/fix/6354
...
commands/swarm(fix): handle empty multiaddrs
2019-05-20 15:47:31 -07:00
Steven Allen
b892db894d
dep: update go-multiaddr
...
Forbids empty multiaddr, fixes #6354
2019-05-20 14:29:26 -07:00
Steven Allen
e35e61d6bc
dep: update dependencies
...
Prepare for release.
2019-05-20 13:28:25 -07:00
Steven Allen
deb7af02ed
feat: improve errors when a path fails to parse
...
This helps with issues like #4190 by telling the user the path that failed to
parse.
fixes #4190
2019-05-17 12:19:15 -07:00
Steven Allen
037382239d
build: switch from megacheck to golangci-lint
...
(which includes megacheck)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:29 -07:00
Steven Allen
598f1fa31e
dep: update ipld formats
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 11:28:04 -07:00
Steven Allen
9886fc06fc
switch to base32 by default for CIDv1
...
fixes #6220
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 10:57:53 -07:00
Steven Allen
5f64b270f8
cmdkit -> cmds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
Steven Allen
857080b5c3
Merge pull request #6308 from ipfs/fix/mfs-regression
...
Update to latest go-mfs
2019-05-09 15:33:39 -07:00
Steven Allen
5fee47c3bd
dep: update goprocess
...
Fixes some panics.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 15:23:38 -07:00
Erik Ingenito
0448c2a714
dep: update go-mfs
...
fixes https://github.com/ipfs/go-mfs/issues/75
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 02:30:39 -07:00
Steven Allen
3c9be59c95
dep: update go-ipfs-cmds
...
(fixes double printing of errors)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:10:44 -07:00
Steven Allen
cab9ddf1ed
ping: don't return success on failed pings
...
fixes #6298
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 22:54:22 -07:00
Erik Ingenito
227da14e58
Update to latest go-mfs
2019-05-08 12:37:07 -07:00
Steven Allen
59370f890b
dep: import goprocess into go modules
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:26 -07:00
Steven Allen
0defe54899
dep: update go-ipfs-config
...
fixes #6284
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:04 -07:00