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:
commit
529d0abcf9
1 changed files with 5 additions and 0 deletions
5
make.sh
5
make.sh
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue