Merge pull request #97959 from carlory/patch-1

set GOOS=linux for the staticcheck tool
This commit is contained in:
Kubernetes Prow Robot 2021-01-12 18:24:35 -08:00 committed by GitHub
commit bbde53e300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ while read -r error; do
elif [[ "${in_failing}" -eq "0" ]]; then elif [[ "${in_failing}" -eq "0" ]]; then
really_failing+=( "$pkg" ) really_failing+=( "$pkg" )
fi fi
done < <(staticcheck -checks "${checks}" "${all_packages[@]}" 2>/dev/null || true) done < <(GOOS=linux staticcheck -checks "${checks}" "${all_packages[@]}" 2>/dev/null || true)
export IFS=$'\n' # Expand ${really_failing[*]} to separate lines export IFS=$'\n' # Expand ${really_failing[*]} to separate lines
kube::util::read-array really_failing < <(sort -u <<<"${really_failing[*]}") kube::util::read-array really_failing < <(sort -u <<<"${really_failing[*]}")