mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
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>
15 lines
204 B
Makefile
15 lines
204 B
Makefile
|
|
|
|
ifeq (,$(wildcard .tarball))
|
|
tarball-is:=0
|
|
else
|
|
tarball-is:=1
|
|
# override git hash
|
|
git-hash:=$(shell cat .tarball)
|
|
endif
|
|
|
|
GOCC ?= go
|
|
|
|
go-ipfs-source.tar.gz: distclean
|
|
GOCC=$(GOCC) bin/maketarball.sh $@
|