Skip to content

Commit

Permalink
Support running without GOPATH set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Iofel committed Jun 7, 2022
1 parent edb5999 commit 3188f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export TZ=UTC
GO_BUILD_FLAGS := "-mod=vendor"

# if the gopath includes several directories, use only the first
GOPATH=$(shell echo $$GOPATH | cut -d: -f1)
GOPATH=$(shell go env GOPATH | cut -d: -f1)

# This block checks and confirms that the proper Go toolchain version is installed.
# It uses ^ matching in the semver sense -- you can be ahead by a minor
Expand Down

0 comments on commit 3188f97

Please sign in to comment.