Skip to content

Commit fef0615

Browse files
camilamacedo86rhuss
authored andcommitted
(fix) fis GOBIN to allow run make install in Mac Os (operator-framework#6936)
Signed-off-by: Camila Macedo <[email protected]>
1 parent 58518a8 commit fef0615

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
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)