Commit Graph

63 Commits

Author SHA1 Message Date
Whyrusleeping
bbdbd0ac6f
Merge pull request #4398 from ipfs/fix/hamt-bug
fix hamt delete issue
2017-12-05 20:53:51 +01:00
Jeromy
1a75c40f5b require go1.9
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 09:33:20 -08:00
Whyrusleeping
bd0ed9ea5d
Merge pull request #4381 from massino/patch-1
Remove reference to "this PR" in code
2017-11-18 10:35:03 -08:00
Jeromy
bbf023fb10 Ipfs v0.4.13-rc1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-14 13:46:10 -08:00
Massino Tinovan
36674b9c90 Remove reference to "this PR" in code
License: MIT
Signed-off-by: Massino Tinovan <massino@droppod.io>
2017-11-10 17:28:06 -08:00
Lars Gierth
e2a3cd3b66 docker: switch from musl to glibc
The Dockerfile now has two stages: build and assembly.
This allows for a full-fledged debian build container,
while still resulting in a super-thin busybox image.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-09-13 15:49:34 +02:00
Jakub Sztandera
345519e026
misc: fix few shellcheck issues in archive-branches.sh
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-08-10 19:21:55 +02:00
Jakub Sztandera
079dfa4190
misc: add feat/zcash to go-ipfs-archived exemption
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-08-10 19:18:25 +02:00
Łukasz Magiera
c2603538fe docs: Require go 1.8
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-07 20:02:42 +02:00
Jordan Danford
c9e20dd907 Change 'neccessary' to 'necessary'
License: MIT
Signed-off-by: Jordan Danford <jordandanford@gmail.com>
2017-05-24 09:40:53 -07:00
kpcyrd
49b90a0754 dist_get: handle 404 correctly
This prevents a 404 page getting piped into tar.

It's also adding the openbsd http(s) client `ftp`.

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-04-27 00:28:44 +02:00
Jeromy
be1e7ed369 Add a script to help generate the CHANGELOG
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-24 13:29:14 -07:00
Jakub Sztandera
dd007b236f
misc: fix dist_get failing without failing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-23 17:57:54 +01:00
kpcyrd
3c96b09ae7 docker: Automatically fix permissions
This patch is delaying the point where permissions are dropped into the `start_ipfs` script. This way, instead of exiting on permission issues, we can fix them on our own inside the script, then drop privileges and continue doing ipfs specific stuff with the correct user.

I've removed the `chmod 0777` step from the readme since it's not needed anymore.

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-03-03 21:10:02 +01:00
Jeromy Johnson
1ef5ecb64b Merge pull request #3730 from ipfs/feat/branch-archive
misc: add branch archiving script
2017-03-01 23:25:22 -08:00
Jeromy Johnson
ea8e0f5074 Merge pull request #3692 from mateon1/fix/dist-get
Make bin/dist_get fall back to other downloaders if one fails
2017-03-01 16:50:20 -08:00
Jeromy Johnson
c8d63ecb66 Merge pull request #3685 from kpcyrd/dockerfile_prepare_cmd
Dockerfile: Deprecate implicit daemon argument
2017-03-01 16:38:37 -08:00
Jakub Sztandera
c63559081c
misc: add branch archiving script
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-27 21:56:38 +01:00
Jakub Sztandera
f66f2f079d
Update gx to version 0.11
Previous version 0.10 was built with faulty version of Go 1.7 which has
problems with TCP -> DNS -> UDP timeouts.

This results in many failed calls to `gx install`

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-21 18:21:16 +01:00
mateon1
4ae80d6933 Use quotes to fix some shellcheck warnings
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-02-16 14:03:40 +01:00
mateon1
6b07815899 Refactor download, add httpie support
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-02-15 22:52:20 +01:00
mateon1
f21499f449 Make dist_get fallback to other downloaders if one fails
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-02-15 21:54:54 +01:00
kpcyrd
04c95fa9d0 Mention the new PR as well
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2017-02-12 20:58:25 +00:00
kpcyrd
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
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
545f03e9c3
Jenkins CI
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:41 +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
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
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
Jakub Sztandera
21c7ec8c35
Add test_go_fmt to makefile
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-24 22:14:59 +01:00
Vasil Dimov
c2dca4bcea
Explicitly specify the input file to tar with "-f -"
On FreeBSD the default one (if no -f is specified) is /dev/sa0,
not stdin.

License: MIT
Signed-off-by: Vasil Dimov <vd@FreeBSD.org>
2016-09-26 22:24:08 +03:00
mateon1
f9dcc8abb1 Quote $0 in case it contains spaces
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2016-09-02 21:13:34 +02:00
mateon1
16672127b8 Fixes #3133: Properly handle release candidates in version comparison
Deduplicate version checking code across scripts

License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2016-09-01 16:31:59 +02:00
Jakub Sztandera
e26ce572a0 bin: dist_get script: prevents get_go_vars() returns same values twice
License: MIT
Signed-off-by: Ariel Machado <sparciie@yahoo.com>
2016-08-12 21:03:08 +02:00
Péter Szilágyi
dbc1d3f2d3 Makefile, bin: Support multiple GOPATH components
License: MIT
Signed-off-by: Péter Szilágyi <peterke@gmail.com>
2016-07-16 18:06:16 -04:00
Vasily Kolobkov
9f14624026 Build on OpenBSD
License: MIT
Signed-off-by: Vasily Kolobkov <polezaivsani@openmailbox.org>
2016-07-12 13:11:57 +02:00
Lars Gierth
108bc9f5bf docker: allow passing options to daemon
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-08 03:23:35 +02:00
Lars Gierth
ad461c611e Revert "Makefile, bin: Support multiple GOPATH components"
This reverts commit ff75bc0318,
which broke building on windows. See ipfs/go-ipfs#2833.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-17 15:32:40 +02:00
Péter Szilágyi
ff75bc0318 Makefile, bin: Support multiple GOPATH components
License: MIT
Signed-off-by: Péter Szilágyi <peterke@gmail.com>
2016-06-05 21:39:02 +03:00
Lars Gierth
864e305557 build: specify a dist.ipfs.io hash
Right now bin/dist_get trusts whatever DNS resolver is active.
This change enables it to verify what it downloads.
Verification itself remains TODO.

This will work best with a unixfs-hash tool which is TODO too.
It'd just do the equivalent of `ipfs add -n -r <dirOrFile>`.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-17 02:33:35 +02:00
Jeromy
5f624efe73 fix up dist_get script
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
3c7fad8af1 address some CR feedback
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
4a0882701a update dist_get script to be more cross platform
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
cd11a487cc debugging travisCI
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
284bb1866f add a dist_get script for getting bins from dist.ipfs.io
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Lars Gierth
50127b2f58 docker: start daemon with --enable-gc
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-21 12:39:53 -04:00
Lars Gierth
7d67b0a69c build: fix path_check for symlink-into-gopath usecase
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-10 19:23:12 +01:00
Jeromy
aa6db5dde3 use makes realpath so its more crossplatform
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-01 11:24:01 -08:00
Jeromy
65519a0367 move gopath check to separate script and use realpath for symlink handling
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-23 22:26:37 -08:00
Christian Couder
40b21bfcfb bin: add check_go_version
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-23 21:26:10 +01:00