Commit Graph

104 Commits

Author SHA1 Message Date
Oli Evans
75240599c9
fix: prefer 127.0.0.1
With an empty API headers config like

```js
	"API": {
		"HTTPHeaders": {}
	},
```

running collect-profiles.sh shows connection errors when trying to POST to `/debug/pprof-mutex/` end point when using `localhost`.

The same errors do not occur when using `127.0.0.1`

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-09-24 11:20:32 +01:00
Oli Evans
0316abc7d6
fix: make collect-profiles.sh work on mac
The version of `date` that ships with darwin does not support the `-Iseconds` flag.

Use a pattern with `date` to achieve the same thing but should have better cross platform support.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-09-24 11:06:23 +01:00
Caian
427205c1b6 Add swarm key variables to container daemon
License: MIT
Signed-off-by: Caian Benedicto <caianbene@gmail.com>
2019-08-02 16:28:12 -03:00
Steven Allen
2198bf377d debug: copy ipfs binary as well 2019-07-08 05:34:46 -07:00
Steven Allen
6b0f9f71e0 build: use protoc-gen-* from gomod
Also,

* Make it possible to override the PROTOC binary.
* Remove gx targets.
2019-06-05 10:57:43 -07:00
Steven Allen
e5aa2e7265 mkreleaselog: calculate contributors 2019-05-29 22:41:27 -07:00
Steven Allen
8fb4e924fb misc: update mkreleaselog to build a recursive changelog 2019-05-28 04:05:42 -07:00
Steven Allen
501001ff79
Merge pull request #6349 from ipfs/fix/mk-source-tarball-tempdir
fix vendoring dependencies when building the source tarball
2019-05-20 09:17:09 -07:00
Steven Allen
8d857bab3e fix vendoring dependencies when building the source tarball
TMPDIR is a special variable indicating the _system_ temporary directory root.
Unfortunately, go refuses to honor `go.mod` files in this directory to prevent
random `/tmp/go.mod` files from messing with modules cloned into `/tmp`.

The fix is simple: rename TMPDIR to TEMP.
2019-05-17 12:34:11 -07:00
Jakub Sztandera
96a9dd77c3 Add generation of dependency changes to mkreleaselog
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-05-17 18:37:41 +02:00
Christopher Buesser
f31dd2aae6 GOCC implementation & fix in make & build scripts
The usage of a native 'go' command has been replaced with a make &
environment variable $GOCC. This enables building with multiple go
versions on a single machine as documented:
  * https://golang.org/doc/install#extra_versions

This enables the usage of:
```bash
$ make install
$ # OR
$ GOCC=go1.12.3 make install
$ # OR
$ GOCC=go1.12.4 make install
```
And the build and test tools now pick up on this change

 On branch go-version-check
 Changes to be committed:
	modified:   Rules.mk
	modified:   bin/check_go_version
	modified:   bin/dist_get
	modified:   bin/maketarball.sh
	modified:   coverage/Rules.mk
	modified:   mk/golang.mk
	modified:   mk/tarball.mk
License: MIT
Signed-off-by: Chris Buesser <christopher.buesser@gmail.com>
2019-04-30 21:22:43 -04:00
kpcyrd
9317649c33 Dockerfile: Remove 2 year old deprecation warning
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2019-04-05 14:10:00 +02:00
Jakub Sztandera
a6053d631a mk: fix maketarball to work with gomod
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-13 23:05:48 +01:00
Jakub Sztandera
e575c93dcd misc: add collect-profiles.sh script, update gitignore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:58 +01:00
Jakub Sztandera
21f3dae696 gomod: remove gopath check
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:58 +01:00
Jakub Sztandera
7f80485d93 mk: remove gx from Makefiles
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:58 +01:00
Steven Allen
daff837886 make: fix building source tarball on macos
Unfortunately, `readlink -f` doesn't work on macos. This change *manually*
converts a relative path to an absolute path.

fixes #5859

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-19 11:03:58 -08:00
Steven Allen
c24e987175
Merge pull request #5473 from akaihola/docker-image-profile
docker: allow IPFS_PROFILE to choose the profile for `ipfs init`
2018-11-26 15:29:58 -08:00
Steven Allen
f2d645f922 fix the maketarball script
* don't write the tarball in the directory we're taring (makes tar unhappy)
* fix permissions
* fix gopath

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-01 19:23:23 -07:00
Łukasz Magiera
23ddc26025 ci: Coverage and Junit xmls in one run
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-29 18:44:49 +01:00
Jakub Sztandera
57adfee1ab fix: maketarball.sh for OSX
Just stop using realpath, should not matter.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-10-09 20:02:22 +01:00
Steven Allen
5f1b796365 upgrade gx/gx-go
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-09 12:36:22 +01:00
Antti Kaihola
821982e96a docker: Quote ipfs init args in the container_daemon shell script
License: MIT
Signed-off-by: Antti Kaihola <antti+ipfs@kaihola.fi>
2018-09-26 11:06:54 +03:00
Antti Kaihola
df7c1fcc97 docker: allow IPFS_PROFILE to choose the profile for ipfs init
License: MIT
Signed-off-by: Antti Kaihola <antti+ipfs@kaihola.fi>
2018-09-19 23:33:16 +03:00
Dominic Della Valle
7a3566b007 handle backslash paths in check_go_path
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-07-20 08:35:25 -04:00
Steven Allen
f90fffbdc8 fix path sep on windows in check_go_path
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-19 15:31:11 -07:00
Steven Allen
24832881dd fix shebang in check_go_path
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-19 09:01:32 -07:00
Steven Allen
5ac752f1fb avoid realpath in check_go_path
It doesn't exist on all operating systems.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-18 19:05:48 -07:00
Steven Allen
439b0e35dc fix check_go_path when it has spaces in it
fixes #5260

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-18 17:12:12 -07:00
Dominic Della Valle
62153f9457 Update dist_root
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-06-07 12:28:22 -04:00
Łukasz Magiera
22a25ef15c switch minimum go version to go 1.10
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Signed-off-by: Victor Bjelkholm <git@victor.earth>
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-16 12:43:20 +01:00
Whyrusleeping
922f8215fa
Merge pull request #4920 from ipfs/feat/tarball
mk: add tarball support
2018-04-20 23:40:54 +09:00
Jakub Sztandera
2535220864 mk: add tarball support
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-04-05 19:18:22 +02:00
Łukasz Magiera
b290286dd7 misc: Fix a few typos
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
Whyrusleeping
d4a43550fc
Merge pull request #4797 from ipfs/misc/arch-bash-confirm
misc: add confirmation to archive-branches script
2018-03-25 09:55:28 -07:00
Jakub Sztandera
67a6e63eb2 Correct output
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-23 07:09:32 +01:00
Jakub Sztandera
8c9725d88e Simplify GOPATH check
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-23 07:09:32 +01:00
Lars Gierth
ad18295955 build: match Go's GOPATH defaults behaviour
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-03-23 07:09:32 +01:00
Jakub Sztandera
8b66077e2a misc: add ai-mirror to excluded branches
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-09 21:50:27 +01:00
Jakub Sztandera
27b6367818 misc: add confirmation to archive-branches script
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-09 21:50:27 +01:00
Dominic Della Valle
e613e9dcfc Fix make deps on Windows
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-02-13 17:10:25 -05:00
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