Commit Graph

17 Commits

Author SHA1 Message Date
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
Ł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
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
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
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
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
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
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
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
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