forked from pool/golang-github-prometheus-prometheus
- Upgrade to upstream version 2.26.0 - Add vendor and web_assets tarballs - Uyuni: Read formula data from exporters map - Uyuni: Add support for TLS targets + Changed: * 0003-Add-Uyuni-service-discovery.patch OBS-URL: https://build.opensuse.org/request/show/890467 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=40
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From dca10001054ba4f61a8be3f4ef67223509a26683 Mon Sep 17 00:00:00 2001
|
|
From: Jan Fajerski <jfajerski@suse.com>
|
|
Date: Fri, 8 Feb 2019 09:17:06 +0100
|
|
Subject: [PATCH 1/3] 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 <jfajerski@suse.com>
|
|
---
|
|
.promu.yml | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/.promu.yml b/.promu.yml
|
|
index f52a646de..782f973a8 100644
|
|
--- a/.promu.yml
|
|
+++ b/.promu.yml
|
|
@@ -10,7 +10,7 @@ build:
|
|
path: ./cmd/prometheus
|
|
- name: promtool
|
|
path: ./cmd/promtool
|
|
- flags: -a -tags netgo,builtinassets
|
|
+ flags: -mod=vendor -a -tags builtinassets
|
|
ldflags: |
|
|
-X github.com/prometheus/common/version.Version={{.Version}}
|
|
-X github.com/prometheus/common/version.Revision={{.Revision}}
|
|
--
|
|
2.26.2
|
|
|