Skip to content

Commit

Permalink
finalizing v0.9.40
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Aug 17, 2023
1 parent 03fa868 commit 7c6609d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

GO_MIN_VER=1.18

filtered_build() {
local osname=$(uname -s)
local pkg=${1:-"./..."}
Expand Down Expand Up @@ -60,9 +62,9 @@ check_prerequisites() {
fi

local go_version=$(go mod edit -json | jq -r '."Go"')
if [[ $go_version < 1.18 ]]; then
if [[ $go_version < $GO_MIN_VER ]]; then
echo "ERROR: Go version number ($go_version) is too low" >&2
echo "Sample: go mod edit -go=1.18 # sets the minimal version" >&2
echo "Sample: go mod edit -go=$GO_MIN_VER # sets the minimal version" >&2
exit 1
fi

Expand Down

0 comments on commit 7c6609d

Please sign in to comment.