Squashed 'release-tools/' changes from 7bc70e52..1748b16b

1748b16b Merge pull request #136 from pohly/go-1.16
ec844ea6 remove travis.yml, Go 1.16
df76aba8 Merge pull request #134 from andyzhangx/add-build-arg
e314a56d add build-arg ARCH for building multi-arch images, e.g. ARG ARCH FROM k8s.gcr.io/build-image/debian-base-${ARCH}:v2.1.3

git-subtree-dir: release-tools
git-subtree-split: 1748b16b488381c34a86ddbee110e9ed523bcb20
This commit is contained in:
Patrick Ohly
2021-03-18 09:13:22 +01:00
parent 7c126df062
commit c7beee394d
6 changed files with 11 additions and 33 deletions

View File

@@ -29,8 +29,9 @@ die () {
version=$("$GO" version) || die "determining version of $GO failed"
# shellcheck disable=SC2001
majorminor=$(echo "$version" | sed -e 's/.*go\([0-9]*\)\.\([0-9]*\).*/\1.\2/')
# shellcheck disable=SC2001
expected=$(grep "^ *- go:" "release-tools/travis.yml" | sed -e 's/.*go: *\([0-9]*\)\.\([0-9]*\).*/\1.\2/')
# SC1091: Not following: release-tools/prow.sh was not specified as input (see shellcheck -x).
# shellcheck disable=SC1091
expected=$(. release-tools/prow.sh && echo "$$CSI_PROW_GO_VERSION_BUILD")
if [ "$majorminor" != "$expected" ]; then
cat >&2 <<EOF