Address comments

This commit is contained in:
Yehuda Katz 2023-03-02 10:43:03 -08:00
parent 07b34118f1
commit 4d37629940
No known key found for this signature in database
GPG key ID: 058C8C4EB1B1A088

View file

@ -9,10 +9,8 @@ fi
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"
GO_VERSION=$(sed -En 's/^go[[:space:]]+([[:digit:].]+)$/\1/p' go.mod)
if ! $(go version | grep -qF "${GO_VERSION}"); then
printferr "You need go %s to build d2.\n" "$GO_VERSION"
if ! $(go version | grep -qF "1.18."); then
printferr "You need go 1.18 to build d2.\n"
exit 1
fi