fix(env): set env var to fix Go race detector issues on macOS Monterey

This commit is contained in:
2021-11-15 17:21:34 +00:00
parent 630558dce2
commit 22cebba662

3
zshenv
View File

@@ -33,6 +33,9 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
if [ -f "/etc/zshenv" ]; then if [ -f "/etc/zshenv" ]; then
source "/etc/zshenv" source "/etc/zshenv"
fi fi
# Fix Go race detector issues: https://github.com/golang/go/issues/49138
export MallocNanoZone=0
fi fi
# ============================================================================== # ==============================================================================