From 519f45efbd16a9392ccc2c0cdf85e000c259bdd9 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Tue, 13 Dec 2022 11:56:13 +0100 Subject: [PATCH] Do not build with netgo on Windows In prevision of upgrading to Go 1.19 which introduces a change on Windows platforms that may break users. See https://github.com/prometheus/prometheus/issues/11480 for details. Signed-off-by: Simon Pasquier --- .promu.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.promu.yml b/.promu.yml index 55ce91d7..30b497b4 100644 --- a/.promu.yml +++ b/.promu.yml @@ -10,7 +10,11 @@ build: path: ./cmd/alertmanager - name: amtool path: ./cmd/amtool - flags: -a -tags netgo + flags: -a + tags: + all: + - netgo + windows: [] ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}}