aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prometheus-node-exporter/disable-go-race-detector.patch
blob: 99c146d037bde772fdc485ad11789a912718ce91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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