From 0b22f2168b31038524d7cef78923464cc2d58e00 Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Fri, 8 Feb 2019 09:17:06 +0100 Subject: [PATCH] Do not force the pure Go name resolver Revert to Go's default mechanism that will decide between the `netgo` pure-Go implementation and the `netcgo` cgo-based implementation depending on OS and environment variables. This allows, among other things, to use Prometheus to scrape mDNS targets. Signed-off-by: Jan Fajerski Signed-off-by: Johannes Kastl --- .promu.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.promu.yml b/.promu.yml index 233295f85..4969d7de1 100644 --- a/.promu.yml +++ b/.promu.yml @@ -12,11 +12,10 @@ build: path: ./cmd/promtool tags: all: - - netgo - builtinassets windows: - builtinassets - flags: -a + flags: -mod=vendor -a ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}} -- 2.39.0