diff --git a/go/lint-project.sh b/go/lint-project.sh index 1808e091..71d16e49 100755 --- a/go/lint-project.sh +++ b/go/lint-project.sh @@ -147,6 +147,15 @@ if [[ "$CGO_ENABLED" == "0" ]]; then GORACE='' fi +if [[ "$OS_NAME" == "osx" ]]; +then + version=$(sw_vers -productVersion) + if echo "$version" | grep "12."; + then + echo "Skipping -race flag on macOS $version" + GORACE="" + fi +fi gotest_packages="./..." if [ -n "$GOTEST_PKGS" ];