Commit 8c9725d8 authored by Jakub Sztandera's avatar Jakub Sztandera

Simplify GOPATH check

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent ad182959
......@@ -7,8 +7,6 @@ if [ -z "$PWD" ]; then
exit 1
fi
[ -z "$GOPATH" ] && GOPATH="$HOME/go"
while [ ${#} -gt 1 ]; do
if [ "$PWD" = "$2" ]; then
exit 0
......
# golang utilities
GO_MIN_VERSION = 1.9
# match Go's default GOPATH behaviour
GOPATH ?= $(HOME)/go
# pre-definitions
GOCC ?= go
......@@ -10,6 +8,9 @@ GOTAGS ?=
GOFLAGS ?=
GOTFLAGS ?=
# match Go's default GOPATH behaviour
export GOPATH ?= $(shell $(GOCC) env GOPATH)
DEPS_GO :=
TEST_GO :=
TEST_GO_BUILD :=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment