Merge pull request #951 from wycats/make-bails-on-wrong-go-version

build: `make` bails on the wrong go version
This commit is contained in:
Alexander Wang 2023-03-03 09:23:00 -08:00 committed by GitHub
commit 529d0abcf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,4 +9,9 @@ fi
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"
if ! go version | grep -qF '1.18'; then
echoerr "You need go 1.18 to build d2."
exit 1
fi
_make "$@"