File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ OS ?= $(shell uname -s | tr A-Z a-z)
16
16
ALL_ARCH = amd64 arm arm64 ppc64le s390x
17
17
PKG = github.com/prometheus/common
18
18
PROMETHEUS_VERSION = 2.40.6
19
- GO_VERSION = 1.19.4
19
+ GO_VERSION = 1.19.6
20
20
IMAGE = $(REGISTRY ) /kube-state-metrics
21
21
MULTI_ARCH_IMG = $(IMAGE ) -$(ARCH )
22
22
USER ?= $(shell id -u -n)
@@ -66,7 +66,8 @@ build-local:
66
66
build : kube-state-metrics
67
67
68
68
kube-state-metrics :
69
- ${DOCKER_CLI} run --rm -v " ${PWD} :/go/src/k8s.io/kube-state-metrics" -w /go/src/k8s.io/kube-state-metrics -e GOOS=$(OS ) -e GOARCH=$(ARCH ) golang:${GO_VERSION} make build-local
69
+ # Need to update git setting to prevent failing builds due to https://github.com/docker-library/golang/issues/452
70
+ ${DOCKER_CLI} run --rm -v " ${PWD} :/go/src/k8s.io/kube-state-metrics" -w /go/src/k8s.io/kube-state-metrics -e GOOS=$(OS ) -e GOARCH=$(ARCH ) golang:${GO_VERSION} git config --global --add safe.directory " *" && make build-local
70
71
71
72
test-unit :
72
73
GOOS=$(shell uname -s | tr A-Z a-z) GOARCH=$(ARCH ) $(TESTENVVAR ) go test --race $(FLAGS ) $(PKGS )
You can’t perform that action at this time.
0 commit comments