From 4d3762994024865c330f9ee62c3afc44beb1b796 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 2 Mar 2023 10:43:03 -0800 Subject: [PATCH] Address comments --- make.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/make.sh b/make.sh index 4d0b2d2d4..ed9353b1d 100755 --- a/make.sh +++ b/make.sh @@ -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