Skip to content

Commit a9f7c43

Browse files
(fix) fis GOBIN to allow run make install in Mac Os
1 parent f01ea54 commit a9f7c43

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export IMAGE_VERSION = v1.39.2
99
export SIMPLE_VERSION = $(shell (test "$(shell git describe --tags)" = "$(shell git describe --tags --abbrev=0)" && echo $(shell git describe --tags)) || echo $(shell git describe --tags --abbrev=0)+git)
1010
export GIT_VERSION = $(shell git describe --dirty --tags --always)
1111
export GIT_COMMIT = $(shell git rev-parse HEAD)
12-
export K8S_VERSION = 1.31.0
12+
export K8S_VERSION = 1.32.1
1313

1414
# Build settings
1515
export TOOLS_DIR = tools/bin
@@ -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)