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 <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2022-12-13 11:56:13 +01:00
parent 30ae6b8038
commit 519f45efbd

View File

@ -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}}