aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prometheus-node-exporter/disable-go-race-detector.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/prometheus-node-exporter/disable-go-race-detector.patch')
-rw-r--r--testing/prometheus-node-exporter/disable-go-race-detector.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/prometheus-node-exporter/disable-go-race-detector.patch b/testing/prometheus-node-exporter/disable-go-race-detector.patch
new file mode 100644
index 0000000000..99c146d037
--- /dev/null
+++ b/testing/prometheus-node-exporter/disable-go-race-detector.patch
@@ -0,0 +1,33 @@
+From 3c66e043f16c833214a10b3aaf36a16c7c1af834 Mon Sep 17 00:00:00 2001
+From: Tiago Ilieve <tiago.myhro@gmail.com>
+Date: Fri, 25 Jan 2019 14:50:25 +0100
+Subject: [PATCH] Disable Go race detector
+
+Go race detector is not supported on musl[1].
+
+[1]: https://github.com/golang/go/issues/14481
+---
+ Makefile | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index d6d138c..b61484b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -33,13 +33,6 @@ else
+ OS_detected := $(shell uname -s)
+ endif
+
+-ifeq ($(GOHOSTARCH),amd64)
+- ifeq ($(OS_detected),$(filter $(OS_detected),Linux FreeBSD Darwin Windows))
+- # Only supported on amd64
+- test-flags := -race
+- endif
+-endif
+-
+ ifeq ($(OS_detected), Linux)
+ test-e2e := test-e2e
+ else
+--
+2.18.1
+