1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

7175 Commits

Author SHA1 Message Date
a2f27e1ac2 Merge pull request #3598 from Voker57/feat/frugal-enumerate
Pass cids instead of nodes around in EnumerateChildrenAsync
2017-02-14 14:29:32 -08:00
6618932545 Re-enable async children enumerating in FetchGraph
License: MIT
Signed-off-by: Iaroslav Gridin <voker57@gmail.com>
2017-02-14 14:09:40 +02:00
08f342e8ba Pass cids instead of nodes around in EnumerateChildrenAsync
License: MIT
Signed-off-by: Iaroslav Gridin <voker57@gmail.com>
2017-02-14 14:09:40 +02:00
cb611c8873 allow for sub-object resolution in dag get
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-13 19:15:17 -08:00
9d8a4afd75 add partial resolving to resolver code
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-02-13 16:25:59 -08:00
2e116b40eb Merge pull request #3649 from ipfs/deps/update-multihash
update go-multihash and bubble up deps
2017-02-13 10:00:58 -08:00
310c08cf58 Update Version to reflect fsrepo change
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2017-02-13 10:11:43 -05:00
fef5d5bbbd Cleanup go vet error
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2017-02-13 10:11:43 -05:00
86c1fb8c96 msfr shouldn't swallow os.IsNotExist
- fsrepo calls and checks for this error (`fsrepo.go:140`)

License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2017-02-13 10:11:43 -05:00
eb5ba9d761 Tests for msfr
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2017-02-13 10:11:43 -05:00
3799bcfc2e Docker: Automatically migrate repo
This keeps docker containers from entering a crashloop on new image versions

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-02-12 21:10:28 +00:00
04c95fa9d0 Mention the new PR as well
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-02-12 20:58:25 +00:00
77e4c64ac0 Dockerfile: Deprecate implicit daemon argument
After the discussion in https://github.com/ipfs/go-ipfs/pull/3573 this patch prints a deprecation warning if:

1) the image has been executed with additional arguments
2) the first argument isn't daemon

This way people are able to migrate to the new syntax without any breaking changes.

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-02-12 20:53:19 +00:00
b4eeff2d84 update go-multihash and bubble up deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
4028e89016 Merge pull request #3640 from ipfs/fix/pinset-obj-explosion
Make pinset sharding deterministic
2017-02-12 12:05:32 -08:00
ac2d7a001d Merge pull request #3684 from ipfs/misc/pull-in-release
Pull in release to master
2017-02-12 11:27:26 -08:00
3c1382d4dc Merge remote-tracking branch 'origin/release' into misc/pull-in-release 2017-02-12 20:20:51 +01:00
79289b6fce Merge pull request #3683 from ipfs/misc/update-version
misc: increase version number to 0.4.6-dev
2017-02-12 11:20:33 -08:00
755bf3fea5 Merge pull request #3682 from ipfs/release-br/v0.4.5
Merge go-ipfs v0.4.5 release into release branch
2017-02-12 11:16:43 -08:00
4c20640a04 misc: increase version number to 0.4.6-dev
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 20:08:46 +01:00
8138536c50 Ipfs release version 0.4.5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEXOC+rqhs4bQKiCA1h+NN/nLcK2sFAlifnvUACgkQh+NN/nLc
 K2uVHhAAscmiXT8zfKbKY9SRFdKFKArcDKX31DwhKZc2cefiNfFqtkqZylHN7GmJ
 cz1DlsQauip6ihayTEevRE0jFo8BxLluw3N8VoQUI2trMfxjwG4XxjBNnMGIFfwP
 icFyJTPmkDDS7j5e0YY/KDzv2lPfc2QPbP6qNFvFoYSV5bzmCCfOIKN5PIe+miP0
 UQA62eIlh1Pbd5vU3IwrnD4pgTMnC49EtGFREkZecUk4IvY22bdcjkqGSFI2MTjk
 s0BAddmXPoNngm5Q+hCQo4cVrgR2PVNCp8YUFw+6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J6hkUfq4f07OPPy1GAsy9K4kQhcLrHmsctd5+xtY21acNyWXIlOzbJ5Wq
 Kciafkeq9i7IRMVU/0MvBWTbW1I6zSV/+386y+wjKeFHP6PLJW8OzSLNluZKgV4u
 JWcbV+nWeQbkh/Y7tywkiQxD5d2GkJf2kgE7MG3dCc11Ew8iEWE=
 =JVC3
 -----END PGP SIGNATURE-----

Merge tag 'v0.4.5' into release

Ipfs release version 0.4.5
2017-02-12 20:03:55 +01:00
e8bbc0be31 Merge pull request #3680 from ipfs/feat/makefile/fix-path-in-shell
make: fix PATH escaping
2017-02-12 11:03:24 -08:00
1d3e039367 make: fix PATH escaping
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 10:26:39 +01:00
37209f36ab Merge pull request #3663 from elopio/patch-1
add the snap installation instructions
2017-02-11 17:41:31 -08:00
e1619bf302 Merge pull request #3504 from ipfs/feat/makefile/refactor
Makefile rework and sharness test coverage
2017-02-11 17:26:10 -08:00
f55206d336 make: reimplement commit ref in version
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 02:14:48 +01:00
14d518683c Merge pull request #3675 from ipfs/gx/publish/0.4.5
gx publish 0.4.5, cleaner
2017-02-11 16:56:49 -08:00
1a5c21cd0b mk/golang: fix multiple tags
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:53:54 +01:00
9e6471fe3c gx publish 0.4.5, cleaner
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 16:35:46 -08:00
e5a1097d52 Update gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
dc128cb470 Make gx less verbose
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
545f03e9c3 Jenkins CI
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
dd63187826 make: make default rule 'aggregate' in sharness
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
a2e3aa5d78 make: fix standalone sharness run
The comparison was wrong

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
f6d70ab541 circleci: separate script to a file
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
c2d100f0ee make: run coverage when distclean
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
730896c006 make: do not run coverage file unless clean of coverage targets are run
This reduces flat make time by half

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
5472dac317 make: delete gen-make-dep-chain
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
f77d01a965 make: add dummy makefile in sharness directory
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
a15e9fd8c6 make: revert the config showing error change
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
73a711b2df make: revert the panic change in pin
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
5b4ecae946 cover: do a cross package coverage
Figured out the way to do it much more cheaply, only few % overhead over
normal coverage.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
cd78168d23 cover: remove Godeps from coverage, add cmd/ipfs to coverage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
f630222580 make: rework makefiles for non-recursive make and add sharness coverage
This commit introduces non-recursive Makefile infrastructure that replaces current Makefile infrastructure.
It also generally cleanups the Makefiles, separates them into nicer sub-modules and centralizes common operations into single definitions.

It allows to depend on any target that is defined in the makefile, this means that for example `gx install` is called once when `make build test_expensive_sharness` is called instead of 4 or 5 times.

It also makes the dependencies much cleaner and allows for reuse of modules. For example sharness coverage collection (WIP) uses sharness target with amended PATH, previously it might have been possible but not without wiring in the coverage collection into sharness make runner code.

Yes, it is more complex but not much more. There are few rules that have to be followed and few complexities added but IMHO it is worth it.

How to NR-make:
1. If make is to generate some file via a target, it MUST be defined in Rules.mk file in the directory of the target.
2. `Rules.mk` file MUST have `include mk/header.mk` statement as the first line and `include mk/footer.mk` statement as the last line (apart from project root `Rules.mk`).
3. It then MUST be included by the closest `Rules.mk` file up the directory tree.
4. Inside a `Rules.mk` special variable accessed as `$(d)` is defined. Its value is current directory, use it so if the `Rules.mk` file is moved in the tree it still works without a problem. Caution: this variable is not available in the recipe part and MUST NOT be used. Use name of the target or prerequisite to extract it if you need it.
5. Make has only one global scope, this means that name conflicts are a thing. Names SHOULD  follow `VAR_NAME_$(d)` convention. There are exceptions from this rule in form of well defined global variables. Examples: General lists `TGT_BIN`, `CLEAN`; General targets: `TEST`, `COVERAGE`; General variables: `GOFLAGS`, `DEPS_GO`.
3. Any rules, definitions or variables that fit some family SHOULD be defined in `mk/$family.mk` file and included from project root `Rules.mk`

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
9efd4c4db7 Merge pull request #3617 from Zanadar/cleanup/offline
Remove 'FindProviders` from routing mocks
2017-02-11 16:14:37 -08:00
b1f17bf889 Merge pull request #3674 from ipfs/gx/publish/0.4.5
gx publish 0.4.5
2017-02-11 16:13:41 -08:00
1061481aa5 gx publish 0.4.5
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 16:03:48 -08:00
2cb68b2210 Merge pull request #3673 from ipfs/release-0.4.5
Ipfs 0.4.5
v0.4.5
2017-02-11 15:31:13 -08:00
81846eee5f Ipfs 0.4.5
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 13:55:38 -08:00
466429ced3 Ipfs 0.4.5, release candidate 4
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
v0.4.5-rc4
2017-02-10 01:33:38 -08:00