aboutsummaryrefslogtreecommitdiff
path: root/apks/prometheus-postgres-exporter/disable-go-race-detector.patch
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-12 22:07:14 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-12 22:12:00 +0100
commiteed21034efae03ee661e06122f96dc01e53afaa4 (patch)
tree77d08583f538a9f87bc1a34e6fe29c3e2f3fd13a /apks/prometheus-postgres-exporter/disable-go-race-detector.patch
parentae0a676dd82ad2c842437ee3cd36526f4951f998 (diff)
downloadapkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.tar.gz
apkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.tar.bz2
apkbuilds-eed21034efae03ee661e06122f96dc01e53afaa4.zip
feat: Add prometheus-postgres-exporter
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.