From 22cebba66220aab07d6d99896076342028615f2f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 15 Nov 2021 17:21:34 +0000 Subject: [PATCH] fix(env): set env var to fix Go race detector issues on macOS Monterey --- zshenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshenv b/zshenv index c1a11e7..68a9584 100644 --- a/zshenv +++ b/zshenv @@ -33,6 +33,9 @@ if [[ "$OSTYPE" == "darwin"* ]]; then if [ -f "/etc/zshenv" ]; then source "/etc/zshenv" fi + + # Fix Go race detector issues: https://github.com/golang/go/issues/49138 + export MallocNanoZone=0 fi # ==============================================================================