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)
1616ALL_ARCH = amd64 arm arm64 ppc64le s390x
1717PKG = github.com/prometheus/common
1818PROMETHEUS_VERSION = 2.40.6
19- GO_VERSION = 1.19.4
19+ GO_VERSION = 1.19.6
2020IMAGE = $(REGISTRY ) /kube-state-metrics
2121MULTI_ARCH_IMG = $(IMAGE ) -$(ARCH )
2222USER ?= $(shell id -u -n)
@@ -66,7 +66,8 @@ build-local:
6666build : kube-state-metrics
6767
6868kube-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
7071
7172test-unit :
7273 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