Skip to content

Commit 3bbb2e4

Browse files
committed
chore: reflect minimum go version
1 parent 19c6d7f commit 3bbb2e4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ to use.
2323
Prerequisites are enforced in various places that should be kept synchronized with this section (e.g., [repoconfig.sh](./repoconfig.sh) defines `golang_version_check` and `nodejs_version_check` shell functions).
2424

2525
* Git
26-
* Go ^1.20.2
26+
* Go ^1.22.12
2727
* Node.js ^18.12 or ^20.9
2828
* we generally support the latest LTS release: use [nvm](https://github.com/nvm-sh/nvm) to keep your local system up-to-date
2929
* Yarn (`npm install -g yarn`)

repoconfig.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#! /bin/sh
22
# shellcheck disable=SC2034
33
NODEJS_VERSION=v20
4-
GOLANG_VERSION=1.22
4+
GOLANG_VERSION=1.22.12
55
GOLANG_DIR=golang/cosmos
66
GOLANG_DAEMON=$GOLANG_DIR/build/agd
77

88
# golang_version_check $major $minor $patch $version
99
golang_version_check() {
1010
# Keep synchronized with README.md section "Prerequisites".
1111
{
12-
[ "$1" -eq 1 ] && [ "$2" -ge 22 ] && return 0
12+
[ "$1" -eq 1 ] && [ "$2" -eq 22 ] && [ "$3" -ge 12 ] && return 0
13+
[ "$1" -eq 1 ] && [ "$2" -ge 23 ] && return 0
1314
} 2> /dev/null
14-
echo 1>&2 "need Go version 1.22+, found $4"
15+
echo 1>&2 "need Go version $GOLANG_VERSION+, found $4"
1516
return 1
1617
}
1718

0 commit comments

Comments
 (0)