From f113d58a57a889ac36c298f3099a91f5e777f848 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Fri, 9 Dec 2022 19:02:05 +0100 Subject: [PATCH] Do not build with netgo on Windows Fix #11480 Signed-off-by: Julien Pivotto --- .promu.yml | 8 +++++++- Makefile.common | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.promu.yml b/.promu.yml index 50c0be257..233295f85 100644 --- a/.promu.yml +++ b/.promu.yml @@ -10,7 +10,13 @@ build: path: ./cmd/prometheus - name: promtool path: ./cmd/promtool - flags: -a -tags netgo,builtinassets + tags: + all: + - netgo + - builtinassets + windows: + - builtinassets + flags: -a ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}} diff --git a/Makefile.common b/Makefile.common index 7642c4485..e358db69c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -55,7 +55,7 @@ ifneq ($(shell which gotestsum),) endif endif -PROMU_VERSION ?= 0.13.0 +PROMU_VERSION ?= 0.14.0 PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz SKIP_GOLANGCI_LINT :=