Fix Makefile by using first element of GOPATH
If GOPATH includes multiple paths, running `make promu` would fail. This fixes it by always using the first path.
This commit is contained in:
parent
41271cd99c
commit
2c5f17d4e7
1 changed files with 4 additions and 3 deletions
1
Makefile
1
Makefile
|
|
@ -12,6 +12,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
GO ?= GO15VENDOREXPERIMENT=1 go
|
||||
GOPATH := $(firstword $(subst :, ,$(GOPATH)))
|
||||
PROMU ?= $(GOPATH)/bin/promu
|
||||
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue