aboutsummaryrefslogtreecommitdiff
path: root/apks/prometheus-postgres-exporter/disable-go-race-detector.patch
diff options
context:
space:
mode:
Diffstat (limited to 'apks/prometheus-postgres-exporter/disable-go-race-detector.patch')
-rw-r--r--apks/prometheus-postgres-exporter/disable-go-race-detector.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/apks/prometheus-postgres-exporter/disable-go-race-detector.patch b/apks/prometheus-postgres-exporter/disable-go-race-detector.patch
new file mode 100644
index 0000000..9ba76a3
--- /dev/null
+++ b/apks/prometheus-postgres-exporter/disable-go-race-detector.patch
@@ -0,0 +1,16 @@
+--- a/Makefile.common
++++ b/Makefile.common
+@@ -111,13 +111,6 @@
+ PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS))
+ TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS))
+
+-ifeq ($(GOHOSTARCH),amd64)
+- ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows))
+- # Only supported on amd64
+- test-flags := -race
+- endif
+-endif
+-
+ # This rule is used to forward a target like "build" to "common-build". This
+ # allows a new "build" target to be defined in a Makefile which includes this
+ # one and override "common-build" without override warnings.