misc: Move to golang 1.20

Make sure to quote your 1.20 otherwise it shows up as 1.2 which is very
old!
This commit is contained in:
James Shubin
2023-12-03 18:08:58 -05:00
parent 271a94e0c7
commit bf5cc63bc5
9 changed files with 15 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ BREW=`command -v brew 2>/dev/null`
PACMAN=`command -v pacman 2>/dev/null`
# set minimum golang version and installed golang version
mingolangversion=16
mingolangversion=20
golangversion=0
if [ -x "$GO" ]; then
# capture the minor version number
@@ -143,7 +143,7 @@ fi
# if golang is too old, we don't want to fail with an obscure error later
if [ "$golangversion" -lt "$mingolangversion" ]; then
echo "mgmt recommends go1.$mingolangversion or higher."
echo "mgmt recommends golang 1.$mingolangversion or higher. (got: 1.${golangversion})"
exit 1
fi