Commit Graph

3278 Commits

Author SHA1 Message Date
Steven Allen
32e891b788 fix(commands/dht): pass values as files instead of arguments
Stdin can't have newlines, command-line arguments can't include null characters,
DHT values can include both.

This is a breaking change but this API has never worked anyways.

fixes #5112
2019-11-05 17:54:13 +00:00
Steven Allen
4574a8f2c2 fix(commands/dht): document value limitations
fixes #6749
2019-11-05 17:50:19 +00:00
Djalil Dreamski
69f81a11dd
Update gateway_handler.go 2019-11-05 17:36:26 +01:00
Steven Allen
e9e32f8ac6 fix(coreapi/add): close the fake repo used when adding with hash-only
fixes #6744
2019-11-04 18:05:35 +00:00
Djalil Dreamski
aefff48654
fix #2203: omit the charset attribute when Content-Type is text/html
License: MIT
Signed-off-by: Abdeldjalil Hebal <dreamski21@gmail.com>
2019-11-02 21:56:54 +01:00
Henrique Dias
29d6d7e3cd
feat: web ui 2.6.0
See https://github.com/ipfs-shipyard/ipfs-webui/releases/tag/v2.6.0.
2019-10-30 17:50:29 +00:00
Steven Allen
4a102207a3
Merge pull request #6643 from ipfs/fix/provide-prometheus-namespace
ipfs namespace is now being provided to prometheus
2019-10-22 20:38:00 -07:00
Adrian Lanzafame
48f25d9ed7
pass opts.Namespace along like before 2019-10-23 10:46:11 +10:00
Henrique Dias
f3f3899a68
Update webui.go 2019-10-21 20:24:15 +01:00
Henrique Dias
a1854101c0
feat: web ui 2.5.8 2019-10-21 08:31:33 +01:00
Henrique Dias
bb59c24947
feat: web ui 2.5.7
Relevant release notes can be found on [v2.5.5](https://github.com/ipfs-shipyard/ipfs-webui/releases/tag/v2.5.5).
2019-10-08 08:33:58 +01:00
Jakub Sztandera
01b357a98a
Merge pull request #6701 from ipfs/feat/buzhash
Introduce buzhash chunker
2019-10-08 01:45:17 +02:00
Steven Allen
14a095258c
Merge pull request #6685 from aschmahmann/fix/6527
Pinning interop: Pin ls returns appropriate zero value
2019-10-08 08:43:08 +09:00
Jakub Sztandera
76d2ad404d
Add buzhash to ipfs add docs
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-07 19:57:43 +02:00
Adin Schmahmann
69bb57895a Pin LS command emits custom JSON to handle streaming case 2019-10-07 10:43:52 -04:00
Steven Allen
208a340eb1
Merge pull request #6686 from kishansagathiya/fix/typo
Fix typo
2019-09-30 07:27:45 -07:00
Kishan Mohanbhai Sagathiya
f0253dd108 Fix typo 2019-09-28 15:15:41 +05:30
Adin Schmahmann
f1cd629e2b pin ls returns the appropriate zero value if no pins are found. 2019-09-27 18:42:29 -04:00
Steven Allen
853ed0be5d chore: fix deprecation warnings 2019-09-26 15:38:12 -07:00
Steven Allen
33c1f2241e
Merge pull request #6665 from ipfs/fix/mdns-warning
discovery: improve mdns warnings
2019-09-23 12:50:23 -07:00
Steven Allen
416195de00 discovery: improve mdns warnings
* Don't warn when connecting to peers.
* Include the peer id when failing to connect to discovered nodes.
2019-09-23 12:17:56 -07:00
Henrique Dias
36acc402aa
feat: web ui 2.5.4 2019-09-23 15:44:21 +01:00
Steven Allen
c9f3d4b9ab cmds(help): fix swarm filter add/rm help text
These _are_ added/removed from the config.

fixes #4605
2019-09-20 15:02:11 -07:00
Adrian Lanzafame
03017cb201
ipfs namespace is now being provided to prometheus 2019-09-15 11:08:19 +10:00
Henrique Dias
7c6ba8f724
feat: webui 2.5.3
Superseeds #6635.
2019-09-12 23:09:43 +01:00
Steven Allen
7555786ed0
Merge pull request #6629 from ipfs/feat/close-peerstore
fix: close peerstore on stop
2019-09-09 16:02:24 -07:00
Henrique Dias
de87c3aa45
feat: web ui 2.5.1 2019-09-06 09:04:21 +01:00
Steven Allen
9f1f958432 fix: close peerstore on stop
fixes #6627
2019-09-05 17:20:14 -07:00
Steven Allen
f6f8d68574 version: don't print 'VERSION-' if no commit is specified
fixes #6022
2019-08-28 00:06:46 -07:00
Cole Brown
1bcf51e02d Update go-libp2p, fix tests with weak RSA keys 2019-08-23 14:26:20 -07:00
Steven Allen
4f6069f218 cmds/refs: fix ipfs refs for sharded directories
fixes #6596
2019-08-21 18:25:46 -07:00
Henrique Dias
b0f496e79f
feat: web ui 2.5.0 2019-08-13 15:20:13 +01:00
Steven Allen
641d9f6b09
Merge pull request #6539 from ipfs/fix/writable-gateway
fix and improve the writable gateway
2019-07-26 19:03:37 -07:00
Steven Allen
c312cfff27 feat: add install instructions for external commands
Issue reported on IRC.
2019-07-26 12:37:33 -07:00
Steven Allen
2c222741d1 fix: update for merkledag API changes 2019-07-25 19:26:06 -07:00
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
41f301a3fd fix: parallel walk in gc & pin ls 2019-07-22 16:43:58 -07:00
Steven Allen
55afc478ec
Merge pull request #6512 from ipfs/fix/default-gossipsub
make gossipsub the default routing protocol for pubsub
2019-07-18 01:04:58 -07:00
Alan Shaw
76f29603a8 feat: add --long as alias for -l in files.ls
Allow passing --long or ?long=true as a more descriptive option name than "l".

refs: https://github.com/ipfs/go-ipfs#issuecomment-392477565
2019-07-17 15:17:57 +01: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
1a55676bf9 make gossipsub the default routing protocol for pubsub
Pubsub is experimental anyways.
2019-07-15 10:02:42 -07:00
Łukasz Magiera
3f7927f1d8 Update imports to go-filestore 2019-07-15 15:52:34 +02:00
Steven Allen
dc56b52734
Merge pull request #6501 from ipfs/docs/pin/update
Improve pin/update description
2019-07-12 08:11:37 -07:00
Steven Allen
20e64aeb34
Merge pull request #6493 from MichaelMure/streamed-pin-ls
pin cmd: stream recursive pins
2019-07-12 07:55:23 -07:00
Hector Sanjuan
146d9d2ac5 Improve pin/update description
I was unable to actually understand what pin update does from the existing
description.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-07-12 13:03:27 +02:00
Michael Muré
16b4d74d3b
pin cmd: fix incorect pin type for indirect pins 2019-07-11 18:19:19 +02:00
Michael Muré
9b21269e03
pin cmd: output the recursive pins first for performance 2019-07-11 14:33:34 +02:00
Michael Muré
4ec37b6f7b
pin cmd: document pin ls output types 2019-07-11 14:05:05 +02:00
Michael Muré
58ea970135
pin cmd: better struct naming 2019-07-11 13:59:09 +02:00
Michael Muré
dd06956d30
pin cmd: proper CID encoding and backward compat 2019-07-11 13:51:54 +02:00
Michael Muré
bb60184526 pin cmd: stream recursive pins
Add a --stream flag to stream the results instead of
accumulating the final result in memory.

This is a rework of https://github.com/ipfs/go-ipfs/pull/5005
2019-07-10 19:04:00 +02: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
10de165644
Change to construct provider from go-ipfs-provider 2019-07-03 14:22:55 -07:00
Steven Allen
288a83ce7d feat: deprecate ipfs repo fsck command
This command is no longer necessary and is quite dangerous:

1. All lockfiles are now released by the OS when the daemon stops.
2. The API file is ignored when (a) the repo is initialized and (b) daemon is
off.

fixes #6435
2019-07-03 12:53:15 -07:00
Dirk McCormick
4ead108a80 fix: ensure pin rm takes a lock 2019-06-12 14:59:06 -04:00
Dirk McCormick
4b6175f75c fix: block put helptext 2019-06-12 12:44:01 -04:00
Dirk McCormick
bc02a61e7c fix: flush pin on block put 2019-06-12 10:31:39 -04: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
Sander Pick
f2635d1f5e
libp2p: moves discovery after host listen
Prevents the MDNS server from starting when the host has zero addresses.

Re: https://github.com/libp2p/go-libp2p/issues/652

Signed-off-by: Sander Pick <sanderpick@gmail.com>
2019-06-05 20:32:51 -07:00
Steven Allen
d460150f43 gateway: label get requests latency with the path namespace 2019-06-04 17:47:08 -07:00
Steven Allen
ebd89b4011 gateway: expand get metric metadata 2019-06-04 17:36:42 -07:00
whyrusleeping
846b6b5d95 add unixfs get metric
License: MIT
Signed-off-by: whyrusleeping <why@ipfs.io>
2019-06-04 17:36:42 -07:00
Hlib
1f1c68f16e Usage of context helper in Blockstore provider 2019-06-04 16:11:27 +03:00
Łukasz Magiera
7be8475c9b block cmd: allow adding multiple blocks at once
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-06-03 20:19:33 -07:00
Hlib
4ca2763ee5 Remove Repo from routing provider parameter 2019-06-03 09:51:12 -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
Henrique Dias
5cd15049ad
feat: update Web UI to v2.4.6 2019-05-31 16:51:08 +01:00
Michael Avila
4feff27a89
Group imports correctly 2019-05-29 16:21:09 -07:00
Michael Avila
98df9143ed
Use ProvideEnabled option to construct Bitswap 2019-05-29 16:20:33 -07:00
Michael Avila
992ec291bc
Give argument intent revealing name (and add comment) 2019-05-29 16:20:33 -07:00
Michael Avila
23e1b1db3a
Use conditional for running provider online
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
9587723911
Remove strategic provider sys constructors
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
0b8f0d3a84
Use interface{} for duplicated return type
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
55676a0b86
Remove Ctor from names
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
a87558e02c
Move more cfg out of groups
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
e8c9207da3
Move cfg out to groups
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
ce75f1c18f
Separate imports
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -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
Łukasz Magiera
7cfb4aa2b4 core: call app.Stop once 2019-05-25 18:42:45 +02: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
2b84b2ba13 chore: fix linter nits and tests that don't compile 2019-05-21 11:09:57 -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
3aef795c9e commands/p2p(fix): avoid creating empty multiaddrs 2019-05-20 14:57:23 -07:00
Steven Allen
7e7d802557 pubsub: avoid using pubsub defaults from upstream 2019-05-20 13:28:29 -07:00
Łukasz Magiera
3652e0c5f3
core: Use correct default for connmgr lowWater
Most people weren't affected by this as those values are set in config at init, but for others it would be rather hard to debug.
2019-05-20 17:41:16 +02:00
Steven Allen
ec19d4c54f
Merge pull request #6321 from ipfs/ci/golangci-lint
Add golangci-lint
2019-05-15 13:38:31 -07:00
Steven Allen
ebff0c5f33 fix formatting in object get
fixes #6337

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-15 12:04:58 -07:00
Steven Allen
942760b4b7
Merge pull request #6330 from ipfs/fix/obj-put-empty
object put: Allow empty objects
2019-05-14 16:08:18 -07:00
Steven Allen
d005ec42b1 object put: detect unexpected fields
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-05-14 23:37:52 +02:00
Steven Allen
307d06b465
Merge pull request #6277 from ipfs/fix/3124
work towards fixing dht commands
2019-05-14 12:38:39 -07:00
Steven Allen
4924b80e10 chore: fix linter nits
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:26 -07:00
Łukasz Magiera
74c4735b66 object put: allow empty objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-05-14 18:26:47 +02: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
9722f202bc
Merge pull request #6312 from ipfs/fix/6298
ping: fix a bunch of issues
2019-05-09 12:53:42 -07:00
Steven Allen
a5066255d7
Merge pull request #6222 from ipfs/fix/dht-321
test(coreapi): use a thread-safe datastore everywhere
2019-05-08 23:49:58 -07:00
Steven Allen
6e2858e8b6 ping: cleanup error message
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:12:12 -07:00
Steven Allen
e511b4cc57 ping: return an error on failure
Use PingResult errors for errors attached to individual pings.

This is a (minor) BREAKING CHANGE.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:06:47 -07:00
Steven Allen
6a91d14888 ping: compute average latency when interrupted
(this should always have been done on the client, IMO, but, oh well...)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 22:54:32 -07:00