build external go binaries from source

- streamlines patching go version related CVEs
- ensures binaries with CGO are linked to the library version we'll be using
This commit is contained in:
Benjamin Elder
2023-05-08 18:40:02 -07:00
parent 7b017b2ce1
commit 2c2b553108
10 changed files with 1103 additions and 221 deletions

View File

@@ -49,7 +49,7 @@ fi
all_shell_scripts=()
while IFS=$'\n' read -r script;
do git check-ignore -q "$script" || all_shell_scripts+=("$script");
done < <(grep -irl '#!.*sh' . | grep -Ev '(^\./\.git/)|(^\./vendor/)|(^\./hack/third_party/)|(^\./bin/)|(\.go$)')
done < <(grep -irl '#!.*sh' . | grep -Ev '(^\./\.git/)|(^\./vendor/)|(^\./hack/third_party/)|(^\./images/base/scripts/third_party/)|(^\./bin/)|(\.go$)')
# common arguments we'll pass to shellcheck
SHELLCHECK_OPTIONS=(