Skip to content

Commit

Permalink
go/lint: disable race detection for macOS Monterey
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jan 3, 2022
1 parent 222f604 commit 525a6ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/lint-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit 525a6ad

Please sign in to comment.