« Back to Index

Go: macOS bug

View original Gist on GitHub

Tags: #macOS #go #bug

macOS Monterey golang bug.bash

# https://github.com/golang/go/issues/41572#issuecomment-924436853
#
# Looks to only happen when the application is compiled with the -race flag and is doing a net.LookupAddr.
#
# Prefixing the MallocNanoZone=0 env var worked for me.

MallocNanoZone=0 TEST_COMPUTE_INIT=1 TEST_COMPUTE_BUILD=1 TEST_COMPUTE_DEPLOY=1 TESTARGS='-timeout 2m -v -run TestList ./pkg/commands/authtoken/...' make test