mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
functions/examples: set proper GOBIN
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy image
|
.PHONY: generate license fix vet fmt test build tidy image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
(cd image && go build -v -o $(GOBIN)/config-function .)
|
(cd image && go build -v -o $(GOBIN)/config-function .)
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy image
|
.PHONY: generate license fix vet fmt test build tidy image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
(cd image && go build -v -o $(GOBIN)/config-function .)
|
(cd image && go build -v -o $(GOBIN)/config-function .)
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy image
|
.PHONY: generate license fix vet fmt test build tidy image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
(cd image && go build -v -o $(GOBIN)/config-function .)
|
(cd image && go build -v -o $(GOBIN)/config-function .)
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: license image
|
.PHONY: license image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
license:
|
license:
|
||||||
(which $(GOBIN)/addlicense || go get github.com/google/addlicense)
|
(which $(GOBIN)/addlicense || go get github.com/google/addlicense)
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy image
|
.PHONY: generate license fix vet fmt test build tidy image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
(cd image && go build -v -o $(GOBIN)/config-function .)
|
(cd image && go build -v -o $(GOBIN)/config-function .)
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy image
|
.PHONY: generate license fix vet fmt test build tidy image
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
build:
|
build:
|
||||||
(cd image && go build -v -o $(GOBIN)/config-function .)
|
(cd image && go build -v -o $(GOBIN)/config-function .)
|
||||||
|
|||||||
Reference in New Issue
Block a user