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 @@ -153,7 +153,7 @@ common-test-short: $(GOTEST_DIR)
153153.PHONY: common-test
154154common-test: $(GOTEST_DIR)
155155 @echo ">> running all tests"
156- CGO_ENABLED=1 GOEXPERIMENT=boringcrypto $(GOTEST) $(test-flags) $(GOOPTS) $(pkgs)
156+ $(GOTEST) $(test-flags) $(GOOPTS) $(pkgs)
157157
158158$(GOTEST_DIR):
159159 @mkdir -p $@
@@ -201,7 +201,7 @@ common-unused:
201201common-build: promu
202202 @echo ">> building binaries"
203203 @env
204- CGO_ENABLED=1 GOEXPERIMENT=boringcrypto go build -o postgres_exporter .
204+ $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES)
205205
206206.PHONY: common-tarball
207207common-tarball: promu
@@ -240,6 +240,7 @@ promu: $(PROMU)
240240$(PROMU):
241241 $(eval PROMU_TMP := $(shell mktemp -d))
242242 curl -s -L $(PROMU_URL) | tar -xvzf - -C $(PROMU_TMP)
243+ sed -i '/^go:/a \ \ cgo: true' $(PROMU_TMP)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/.promu.yml
243244 mkdir -p $(FIRST_GOPATH)/bin
244245 cp $(PROMU_TMP)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/promu $(FIRST_GOPATH)/bin/promu
245246 rm -r $(PROMU_TMP)
You can’t perform that action at this time.
0 commit comments