Skip to content

Commit 25d08c5

Browse files
(fix) fis GOBIN to allow run make install in Mac Os (#6936)
Signed-off-by: Camila Macedo <[email protected]>
1 parent d44b392 commit 25d08c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ clean: ## Cleanup build artifacts and tool binaries.
7171

7272
##@ Build
7373

74+
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
75+
ifeq (,$(shell go env GOBIN))
76+
GOBIN=$(shell go env GOPATH)/bin
77+
else
78+
GOBIN=$(shell go env GOBIN)
79+
endif
80+
7481
.PHONY: install
7582
install: ## Install operator-sdk and helm-operator.
7683
@if [ -z "$(GOBIN)" ]; then \

0 commit comments

Comments
 (0)