From ef63822ef021fa6abccc66b2805267b0ddeb8375 Mon Sep 17 00:00:00 2001 From: Nato Boram Date: Tue, 15 Feb 2022 17:47:48 -0500 Subject: [PATCH] fix(build): Recognize Go Beta versions in makefile (#8677) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🩹 Fix building with beta Go versions * ✏️ Use `[:space:]` to be more canonical --- bin/check_go_version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check_go_version b/bin/check_go_version index 395af8a79..74320010b 100755 --- a/bin/check_go_version +++ b/bin/check_go_version @@ -39,6 +39,6 @@ type ${GOCC} >/dev/null 2>&1 || die_upgrade "go is not installed or not in the P VERS_STR=$(${GOCC} version 2>&1) || die "'go version' failed with output: $VERS_STR" -GO_CUR_VERSION=$(expr "$VERS_STR" : ".*go version go\([^ ]*\) .*") || die "Invalid 'go version' output: $VERS_STR" +GO_CUR_VERSION=$(expr "$VERS_STR" : ".*go version.* go\([^[:space:]]*\) .*") || die "Invalid 'go version' output: $VERS_STR" check_at_least_version "$GO_MIN_VERSION" "$GO_CUR_VERSION" "${GOCC}"