aports/testing/prometheus-node-exporter/disable-go-race-detector.patch
2019-01-27 04:42:12 +02:00

34 lines
755 B
Diff

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