mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #97959 from carlory/patch-1
set GOOS=linux for the staticcheck tool
This commit is contained in:
commit
bbde53e300
@ -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[*]}")
|
||||||
|
Loading…
Reference in New Issue
Block a user