Merge pull request #3558 from zhijianli88/GOBIN

Makefile: check and use GOBIN environment variable first
This commit is contained in:
Kubernetes Prow Robot
2021-03-31 10:01:01 -07:00
committed by GitHub
15 changed files with 60 additions and 20 deletions

View File

@@ -3,8 +3,11 @@
#
# Makefile for kustomize CLI and API.
MYGOBIN := $(shell go env GOPATH)/bin
SHELL := /usr/bin/env bash
MYGOBIN = $(shell go env GOBIN)
ifeq ($(MYGOBIN),)
MYGOBIN = $(shell go env GOPATH)/bin
endif
export PATH := $(MYGOBIN):$(PATH)
MODULES := '"cmd/config" "api/" "kustomize/" "kyaml/"'