Skip to content

Commit 7c6609d

Browse files
committed
finalizing v0.9.40
1 parent 03fa868 commit 7c6609d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/functions.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
GO_MIN_VER=1.18
4+
35
filtered_build() {
46
local osname=$(uname -s)
57
local pkg=${1:-"./..."}
@@ -60,9 +62,9 @@ check_prerequisites() {
6062
fi
6163

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

0 commit comments

Comments
 (0)