@cryptotaxi247 / kubo / commits / ad1829595

build: match Go's GOPATH defaults behaviour

License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>

Lars Gierth committed Feb 10, 2018 at 03:46 UTC ad18295955388456ce750c0803d5160d35756bed
2 files changed +4 -4
bin/check_go_path
+1 -4
@@ -7,10 +7,7 @@ if [ -z "$PWD" ]; then
7 exit 1
8 fi
9
10 -if [ -z "$GOPATH" ]; then
11 - echo "GOPATH not set, you must have go configured properly to install ipfs"
12 - exit 1
13 -fi
10 +[ -z "$GOPATH" ] && GOPATH="$HOME/go"
11
12 while [ ${#} -gt 1 ]; do
13 if [ "$PWD" = "$2" ]; then
mk/golang.mk
+3
@@ -1,6 +1,9 @@
1 # golang utilities
2 GO_MIN_VERSION = 1.9
3
4 +# match Go's default GOPATH behaviour
5 +GOPATH ?= $(HOME)/go
6 +
7 # pre-definitions
8 GOCC ?= go
9 GOTAGS ?=