Skip to content

Commit ed3e3bc

Browse files
authored
Bump minimum required Go version to 1.23 (#647)
1 parent f2415e8 commit ed3e3bc

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/neo4j/neo4j-go-driver/v5
22

3-
go 1.18
3+
go 1.23

hooks/pre-commit

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ verlt() {
1414

1515
go_version=$(go version | grep -o "go\([0-9.]\)\+" | grep -o "\([0-9.]\)\+")
1616
staticcheck_version="latest"
17-
if verlt $go_version "1.19"; then # go 1.18 and below
18-
staticcheck_version="v0.3.3"
19-
elif verlt $go_version "1.20"; then # go 1.19 and below
20-
staticcheck_version="v0.4.7"
21-
elif verlt $go_version "1.22.1"; then
22-
staticcheck_version="v0.4.7"
17+
if verlt $go_version "1.23.0"; then # go 1.18 and below
18+
>&2 echo "Project requires go1.23 or newer"
2319
fi
2420

2521
echo "# pre-commit hook"

testkit/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:20.04
22

3-
ARG go_version_min=1.18
4-
ARG go_version_default=1.23.4
3+
ARG go_version_min=1.23.11
4+
ARG go_version_default=1.23.5
55

66
# Install all needed to build and run tests
77
# Install tzdata to make sure Go timezone info works correctly (need noninteractive to avoid

testkit/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
print("Install staticcheck", flush=True)
5050
run_go(
51-
["install", "honnef.co/go/tools/cmd/staticcheck@v0.3.3"],
51+
["install", "honnef.co/go/tools/cmd/staticcheck@v0.6.0"],
5252
go_bin=go_bin,
5353
env=defaultEnv
5454
)

0 commit comments

Comments
 (0)