Commit Graph

1337 Commits

Author SHA1 Message Date
Whyrusleeping
a98a4f40d3
Merge pull request #4873 from ipfs/fix/4871
make the tar writer handle sharded ipfs directories
2018-03-25 12:47:40 -07:00
Whyrusleeping
b1b96fc9db
Merge pull request #4856 from ipfs/fix/stats-bs-header
cmds/stat: remove useless header if not polling
2018-03-24 19:50:22 -07:00
Steven Allen
6895fc653f return a nice error when listing sharded directories
Unfortunately, fixing this would require breaking the API.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 16:03:02 -07:00
Steven Allen
70bf571742 bump tar dep to make it resolvable
It wasn't pinned and `gx publish -f` gave a different hash.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 10:53:55 -07:00
Whyrusleeping
41d82eeeb5
Merge pull request #4733 from dirkmc/feat/namesys-value-count
Add options for record count and timeout for resolving DHT paths
2018-03-23 09:59:26 -07:00
Whyrusleeping
1fb90ad62c
Merge pull request #4857 from ipfs/extract/thirdparty-tar
Extract: thirdparty/tar
2018-03-23 09:41:31 -07:00
Whyrusleeping
6b180b2f7c
Merge pull request #4832 from ipfs/fix/bootstrap-cmd-prefix
Use prefix in bootstrapWritePeers
2018-03-22 23:32:47 -07:00
Whyrusleeping
aaf6ee78cc
Merge pull request #4809 from djdv/fix/get/outpath
Fix get output path
2018-03-22 23:29:17 -07:00
Whyrusleeping
59ad0f8c4b
Merge pull request #4755 from schomatis/fix/add/hash-only
add: hash-only: set the prefix for MFS root
2018-03-22 23:18:23 -07:00
Whyrusleeping
a9dfe410d2
Merge pull request #4563 from ipfs/fix/block-mhtype
commands/block: use CIDv1 with custom mhtype
2018-03-22 23:03:56 -07:00
Dirk McCormick
494f242b76 Parse string time (eg 30s) instead of assuming seconds for —-dht-timeout
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-03-22 12:52:09 -04:00
Hector Sanjuan
9a2f2976f2 Use latests tar-utils
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-22 00:28:44 +01:00
Hector Sanjuan
5bbaa75bea Extract: thirdparty/tar
This module was sort of extracted to whyrusleeping/tar-utils long ago.
I gxed that, imported commits from go-ipfs to the current state, and
extracted it.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-21 18:02:25 +01:00
Jakub Sztandera
21fae5bfad cmds/stat: remove useless header if not polling
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-21 15:36:58 +01:00
Steven Allen
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
Łukasz Magiera
ed54f58df7 use prefix in bootstrapWritePeers
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-19 01:36:51 +01:00
Steven Allen
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
Whyrusleeping
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
Jeromy
116269a12b upgrade commands that used StringArguments
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-16 20:06:54 -07:00
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Dominic Della Valle
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
Łukasz Magiera
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
Whyrusleeping
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
Jeromy
dd40a5a2d5 fix pubsub pub reading stdin args
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
Jakub Sztandera
51bf1b6cd4 Significanly improve GC UX with verifcid
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:43:42 +01:00
Jakub Sztandera
a9417a144c fix ipfs pin verify --verbose not working
Resolves https://github.com/ipfs/go-ipfs/issues/4761

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
bcedd38c9a //hash -> // hash
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
c30422d790 Enforce Cid security rules for getting and adding blocks
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Lucas Molas
5d7e8a893d add: hash-only: set the prefix for MFS root
Fixes #4652.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-02 15:46:02 -03:00
Dirk McCormick
5202f76d1f Syntactic changes
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-03-01 15:09:25 -05:00
Dirk McCormick
e8f79c8803 Use variadic options
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-28 16:57:58 -05:00
Dirk McCormick
1abf8366ee Add options for record count and timeout for resolving DHT paths
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-23 11:47:30 -05:00
Michael Muré
e2bad6ec5e
make files stat --with-local return immediately when no data is present
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-21 18:41:40 +01:00
Steven Allen
45756b6d64 fix a bunch of go vet errors
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 17:37:35 -08:00
Steven Allen
2c68c15407 update go-ipfs-cmds
* May fix #4670
* Fixes #4683

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 16:43:00 -08:00
Hector Sanjuan
93d1a695d4 Feat: Separate "path" from "path/resolver"
Currently the "path" module does two very different things:

* Defines how ipfs paths look like and provides tools to parse/split etc.
* Provides a resolver to resolve paths.

This moves the resolver stuff to `path/resolver` and leaves the
path utilities in `path`.

The result is that now the IPFS `path` package just defines what a path
looks like and becomes a module that can be exported/re-used without problems.
Currently there are circular dependency cycles (resolve_test -> merkledag/utils,
merkledag->path), which the prevent the export of merkledag itself.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 00:20:30 +01:00
Hector Sanjuan
758e00bc4c Extract blocks/blockstore package to go-ipfs-blockstore
This extracts the blocks/blockstore package and renames the
blocks/blockstore/util package to /blocks/blockstoreutil
(because util depends on Pin and I don't plan to extract
Pin and its depedencies).

The history of blocks/blockstore has been preserved. It has
been gx'ed and imported. Imports have been rewritten accordingly
and re-ordered.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 18:03:41 +01:00
Whyrusleeping
28acec2adb
Merge pull request #4703 from ipfs/extract/routing
Extract: routing package to github.com/ipfs/go-ipfs-routing
2018-02-14 12:33:22 -08:00
Whyrusleeping
10b96a39de
Merge pull request #4557 from elopio/patch-1
update link to filestore experimental status
2018-02-14 12:31:53 -08:00
Hector Sanjuan
54d87b4ce0 Extract: routing package to github.com/ipfs/go-ipfs-routing
This extracts the routing package to its own repository
(https://github.com/ipfs/go-ipfs-routing). History has
been preserved. The new module has been gx'ed and published.

Imports have been rewritten and re-ordered accordingly.

An internal dependency to go-ipfs/repo has been removed
by substituting it with the go-datastore.Batching interface.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-14 18:33:52 +01:00
Hector Sanjuan
d7cd059165 Doc: golint: remove stuttering in pin package
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-13 13:00:48 +01:00
Michael Muré
30d4eaa067
address code review
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:58:09 +01:00
Michael Muré
189c905f40
fix linting
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Kevin Atkinson
eeb15db140
Move files.go out of its own directory.
It is a single file so putting it in its own package is a bit of an
overkill.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-02-04 01:52:49 +01:00
Michael Muré
cac995e704
cleaning
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Michael Muré
69b8383e1c
add a --with-local option to ipfs files stat
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
d716a93fae
ipfs files stat: use go-ipfs-cmds
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
53c42fc4d3
ipfs files: use go-ipfs-cmds
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00