Commit Graph

7954 Commits

Author SHA1 Message Date
Jeromy Johnson
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
Jakub Sztandera
1d3e039367
make: fix PATH escaping
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 10:26:39 +01:00
Jeromy Johnson
37209f36ab Merge pull request #3663 from elopio/patch-1
add the snap installation instructions
2017-02-11 17:41:31 -08:00
Jeromy Johnson
e1619bf302 Merge pull request #3504 from ipfs/feat/makefile/refactor
Makefile rework and sharness test coverage
2017-02-11 17:26:10 -08:00
Jakub Sztandera
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
Jeromy Johnson
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
Jakub Sztandera
1a5c21cd0b
mk/golang: fix multiple tags
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:53:54 +01:00
Jeromy
9e6471fe3c gx publish 0.4.5, cleaner
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 16:35:46 -08:00
Jakub Sztandera
e5a1097d52
Update gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
Jakub Sztandera
dc128cb470
Make gx less verbose
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
Jakub Sztandera
545f03e9c3
Jenkins CI
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +01:00
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
c2d100f0ee
make: run coverage when distclean
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jakub Sztandera
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
Jeromy Johnson
9efd4c4db7 Merge pull request #3617 from Zanadar/cleanup/offline
Remove 'FindProviders` from routing mocks
2017-02-11 16:14:37 -08:00
Jeromy Johnson
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
Jeromy
1061481aa5 gx publish 0.4.5
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 16:03:48 -08:00
Jeromy Johnson
2cb68b2210 Merge pull request #3673 from ipfs/release-0.4.5
Ipfs 0.4.5
2017-02-11 15:31:13 -08:00
Jeromy
81846eee5f Ipfs 0.4.5
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-11 13:55:38 -08:00
Jeromy
466429ced3 Ipfs 0.4.5, release candidate 4
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-10 01:33:38 -08:00
Jeromy Johnson
f330d5d417 Merge pull request #3669 from ipfs/feat/unbreak-webui
feat(webui): update to new version
2017-02-09 12:21:49 -08:00
Jeromy
80d49b82e7 Ipfs 0.4.5, release candidate 3
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-09 11:14:45 -08:00
Jeromy Johnson
56b85063b7 Merge pull request #3670 from ipfs/fix/dag-cbor-test
fix printing out of binary escaped data for test
2017-02-09 11:10:28 -08:00
Jeromy
c5f0f7f77c fix printing out of binary escaped data for test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-09 10:31:18 -08:00
Jeromy Johnson
dc689785a3 Merge pull request #3668 from ipfs/feat/yamux-debugging
Add in env var to enable yamux debug logging
2017-02-09 09:03:06 -08:00
Friedel Ziegelmayer
49c30f6efe feat(webui): update to new version
Closes #3664

License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-02-09 12:44:30 +01:00
Jeromy
66e1826116 Add in env var to enable yamux debug logging
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 22:36:40 -08:00
Jeromy Johnson
597ba69a0f Merge pull request #3666 from ipfs/fix/cbor-null-arrays
Fix marshaling of null cbor arrays
2017-02-08 17:36:05 -08:00
Jeromy Johnson
0969505e64 Merge pull request #3665 from ipfs/fix/repo-migration-musl
migrations: make libc check more resilient
2017-02-08 17:34:42 -08:00
Jeromy
85a06abacc Fix marshaling of null cbor arrays
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

Fix non-canonical imports via dag put

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 16:24:31 -08:00
Lars Gierth
150fe9de76 migrations: make libc check more resilient
Fixes #3661.

There are a couple of cases in which ldd won't operate on an executable,
for example when the executable is statically linked.

This patch makes the call to ldd to ldd more resilient against errors,
and looks for the system libc, instead of the libc go-ipfs was linked against.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-02-08 18:56:42 +01:00
Leo Arias
50ee67f05f add the snap installation instructions
License: MIT
Signed-off-by: Leo Arias <yo@elopio.net>
2017-02-07 21:26:05 +00:00
Jeromy Johnson
5c2cbb339f Merge pull request #3659 from ipfs/feat/gx-publish
gx publish v0.4.5-rc2
2017-02-06 14:54:26 -08:00
Lars Gierth
304ac6f8c9 gx publish v0.4.5-rc2
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-02-06 23:27:08 +01:00
Jeromy
5019fcbe37 Ipfs 0.4.5, release candidate 2
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 11:03:11 -08:00
Jeromy Johnson
2a7330e4b4 Merge pull request #3655 from ipfs/fix/dag-get-json-output
dag/get: fix link formatting in json output
2017-02-06 11:00:11 -08:00
Jeromy
c00c142bf9 dag/get: fix link formatting in json output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 10:36:57 -08:00
Jeromy
313b8846ae Ipfs 0.4.5, release candidate 1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-29 23:20:28 -08:00
Jeromy Johnson
24c5c873a3 Merge pull request #3639 from ipfs/feat/0.4.5-changelog
Feat/0.4.5 changelog
2017-01-29 18:32:07 -08:00
Jeromy
93c7599755 linkify
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-29 13:40:16 -08:00
Jeromy
974bdfdb59 Update changelog for 0.4.5 release
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-29 12:18:55 -08:00