Skip to content

Commit a4c0170

Browse files
GODRIVER-3514 Upgrade to Go 1.23 in CI (#1994)
1 parent 9443c03 commit a4c0170

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

.evergreen/config.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ axes:
17451745
- windows-vsCurrent-small
17461746
variables:
17471747
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
1748-
GO_DIST: "C:\\golang\\go1.22"
1748+
GO_DIST: "C:\\golang\\go1.23"
17491749
VENV_BIN_DIR: "Scripts"
17501750
DEFAULT_TASK: evg-test
17511751
# CSOT tests are unreliable on our slow Windows hosts.
@@ -1754,14 +1754,14 @@ axes:
17541754
display_name: "RHEL 8.7"
17551755
run_on: rhel8.7-large
17561756
variables:
1757-
GO_DIST: "/opt/golang/go1.22"
1757+
GO_DIST: "/opt/golang/go1.23"
17581758
DEFAULT_TASK: evg-test
17591759
- id: "macos"
17601760
display_name: "MacOS 14.0"
17611761
run_on: macos-14
17621762
batchtime: 1440 # Run at most once per 24 hours.
17631763
variables:
1764-
GO_DIST: "/opt/golang/go1.22"
1764+
GO_DIST: "/opt/golang/go1.23"
17651765
DEFAULT_TASK: evg-test-load-balancers
17661766
# CSOT tests are unreliable on our slow macOS hosts.
17671767
SKIP_CSOT_TESTS: true
@@ -1776,7 +1776,7 @@ axes:
17761776
- windows-vsCurrent-small
17771777
variables:
17781778
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
1779-
GO_DIST: "C:\\golang\\go1.22"
1779+
GO_DIST: "C:\\golang\\go1.23"
17801780
VENV_BIN_DIR: "Scripts"
17811781
DEFAULT_TASK: evg-test
17821782
# CSOT tests are unreliable on our slow Windows hosts.
@@ -1785,14 +1785,14 @@ axes:
17851785
display_name: "RHEL 8.7"
17861786
run_on: rhel8.7-large
17871787
variables:
1788-
GO_DIST: "/opt/golang/go1.22"
1788+
GO_DIST: "/opt/golang/go1.23"
17891789
DEFAULT_TASK: evg-test
17901790
- id: "macos"
17911791
display_name: "MacOS 14.0"
17921792
run_on: macos-14
17931793
batchtime: 1440 # Run at most once per 24 hours.
17941794
variables:
1795-
GO_DIST: "/opt/golang/go1.22"
1795+
GO_DIST: "/opt/golang/go1.23"
17961796
DEFAULT_TASK: evg-test-load-balancers
17971797
# CSOT tests are unreliable on our slow macOS hosts.
17981798
SKIP_CSOT_TESTS: true
@@ -1804,7 +1804,7 @@ axes:
18041804
display_name: "RHEL 8.7"
18051805
run_on: rhel8.7-large
18061806
variables:
1807-
GO_DIST: "/opt/golang/go1.22"
1807+
GO_DIST: "/opt/golang/go1.23"
18081808
DEFAULT_TASK: evg-test
18091809

18101810
- id: os-aws-auth
@@ -1816,7 +1816,7 @@ axes:
18161816
- windows-vsCurrent-small
18171817
variables:
18181818
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
1819-
GO_DIST: "C:\\golang\\go1.22"
1819+
GO_DIST: "C:\\golang\\go1.23"
18201820
SKIP_ECS_AUTH_TEST: true
18211821
DEFAULT_TASK: evg-test
18221822
# CSOT tests are unreliable on our slow Windows hosts.
@@ -1825,14 +1825,14 @@ axes:
18251825
display_name: "Ubuntu 20.04"
18261826
run_on: ubuntu2004-test
18271827
variables:
1828-
GO_DIST: "/opt/golang/go1.22"
1828+
GO_DIST: "/opt/golang/go1.23"
18291829
DEFAULT_TASK: evg-test
18301830
- id: "macos"
18311831
display_name: "MacOS 14.0"
18321832
run_on: macos-14
18331833
batchtime: 1440 # Run at most once per 24 hours.
18341834
variables:
1835-
GO_DIST: "/opt/golang/go1.22"
1835+
GO_DIST: "/opt/golang/go1.23"
18361836
SKIP_ECS_AUTH_TEST: true
18371837
SKIP_EC2_AUTH_TEST: true
18381838
SKIP_WEB_IDENTITY_AUTH_TEST: true
@@ -1847,7 +1847,7 @@ axes:
18471847
display_name: "RHEL 8.7"
18481848
run_on: rhel8.7-large
18491849
variables:
1850-
GO_DIST: "/opt/golang/go1.22"
1850+
GO_DIST: "/opt/golang/go1.23"
18511851

18521852
- id: os-serverless
18531853
display_name: OS
@@ -1856,7 +1856,7 @@ axes:
18561856
display_name: "RHEL 8.7"
18571857
run_on: rhel8.7-small
18581858
variables:
1859-
GO_DIST: "/opt/golang/go1.22"
1859+
GO_DIST: "/opt/golang/go1.23"
18601860

18611861
task_groups:
18621862
- name: serverless_task_group
@@ -2095,7 +2095,7 @@ buildvariants:
20952095
- rhel8.7-small
20962096
expansions:
20972097
# Keep this in sync with go version used in etc/golangci-lint.sh
2098-
GO_DIST: "/opt/golang/go1.22"
2098+
GO_DIST: "/opt/golang/go1.23"
20992099
tasks:
21002100
- name: ".static-analysis"
21012101

@@ -2105,7 +2105,7 @@ buildvariants:
21052105
run_on:
21062106
- rhel8.7-small
21072107
expansions:
2108-
GO_DIST: "/opt/golang/go1.22"
2108+
GO_DIST: "/opt/golang/go1.23"
21092109
tasks:
21102110
- name: "pull-request-helpers"
21112111

@@ -2114,7 +2114,7 @@ buildvariants:
21142114
display_name: "Performance"
21152115
run_on: rhel90-dbx-perf-large
21162116
expansions:
2117-
GO_DIST: "/opt/golang/go1.22"
2117+
GO_DIST: "/opt/golang/go1.23"
21182118
tasks:
21192119
- name: ".performance"
21202120

@@ -2124,7 +2124,7 @@ buildvariants:
21242124
run_on:
21252125
- rhel8.7-small
21262126
expansions:
2127-
GO_DIST: "/opt/golang/go1.22"
2127+
GO_DIST: "/opt/golang/go1.23"
21282128
tasks:
21292129
- name: ".compile-check"
21302130

@@ -2133,7 +2133,7 @@ buildvariants:
21332133
run_on:
21342134
- rhel8.7-small
21352135
expansions:
2136-
GO_DIST: "/opt/golang/go1.22"
2136+
GO_DIST: "/opt/golang/go1.23"
21372137
tasks:
21382138
- name: "backport-pr"
21392139

@@ -2143,7 +2143,7 @@ buildvariants:
21432143
run_on:
21442144
- rhel8.7-large
21452145
expansions:
2146-
GO_DIST: "/opt/golang/go1.22"
2146+
GO_DIST: "/opt/golang/go1.23"
21472147
tasks:
21482148
- name: "atlas-test"
21492149

@@ -2153,7 +2153,7 @@ buildvariants:
21532153
run_on:
21542154
- ubuntu2004-large
21552155
expansions:
2156-
GO_DIST: "/opt/golang/go1.22"
2156+
GO_DIST: "/opt/golang/go1.23"
21572157
tasks:
21582158
- name: "test-atlas-data-lake"
21592159

@@ -2163,7 +2163,7 @@ buildvariants:
21632163
run_on:
21642164
- ubuntu2204-large
21652165
expansions:
2166-
GO_DIST: "/opt/golang/go1.22"
2166+
GO_DIST: "/opt/golang/go1.23"
21672167
tasks:
21682168
- name: "test-docker-runner"
21692169

@@ -2173,7 +2173,7 @@ buildvariants:
21732173
run_on:
21742174
- ubuntu2204-large
21752175
expansions:
2176-
GO_DIST: "/opt/golang/go1.22"
2176+
GO_DIST: "/opt/golang/go1.23"
21772177
tasks:
21782178
- name: ".goleak"
21792179

@@ -2340,7 +2340,7 @@ buildvariants:
23402340
run_on:
23412341
- rhel8.7-small
23422342
expansions:
2343-
GO_DIST: "/opt/golang/go1.22"
2343+
GO_DIST: "/opt/golang/go1.23"
23442344
tasks:
23452345
- name: testgcpkms_task_group
23462346
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
@@ -2351,7 +2351,7 @@ buildvariants:
23512351
run_on:
23522352
- rhel8.7-small
23532353
expansions:
2354-
GO_DIST: "/opt/golang/go1.22"
2354+
GO_DIST: "/opt/golang/go1.23"
23552355
tasks:
23562356
- testawskms-task
23572357
- testawskms-fail-task
@@ -2361,7 +2361,7 @@ buildvariants:
23612361
run_on:
23622362
- rhel8.7-small
23632363
expansions:
2364-
GO_DIST: "/opt/golang/go1.22"
2364+
GO_DIST: "/opt/golang/go1.23"
23652365
tasks:
23662366
- name: testazurekms_task_group
23672367
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
@@ -2372,7 +2372,7 @@ buildvariants:
23722372
run_on:
23732373
- ubuntu2204-small
23742374
expansions:
2375-
GO_DIST: "/opt/golang/go1.22"
2375+
GO_DIST: "/opt/golang/go1.23"
23762376
tasks:
23772377
- name: testoidc_task_group
23782378
- name: testazureoidc_task_group

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See the following resources to learn more about upgrading from version 1.x to 2.
1818
## Requirements
1919

2020
- Go 1.18 or higher. We aim to support the latest versions of Go.
21-
- Go 1.22 or higher is required to run the driver test suite.
21+
- Go 1.23 or higher is required to run the driver test suite.
2222
- MongoDB 3.6 and higher.
2323

2424
## Installation

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We are building this software together and strongly encourage contributions from
66

77
## Requirements
88

9-
Go 1.22 or higher is required to run the driver test suite. We use [task](https://taskfile.dev/) as our task runner.
9+
Go 1.23 or higher is required to run the driver test suite. We use [task](https://taskfile.dev/) as our task runner.
1010

1111
## Bug Fixes and New Features
1212

@@ -17,7 +17,7 @@ Before starting to write code, look for existing [tickets](https://jira.mongodb.
1717
The Go Driver team uses GitHub to manage and review all code changes. Patches should generally be made against the master (default) branch and include relevant tests, if
1818
applicable.
1919

20-
Code should compile and tests should pass under all Go versions which the driver currently supports. Currently the Go Driver supports a minimum version of Go 1.18 and requires Go 1.22 for development. Please run the following `Taskfile` targets to validate your changes:
20+
Code should compile and tests should pass under all Go versions which the driver currently supports. Currently the Go Driver supports a minimum version of Go 1.18 and requires Go 1.23 for development. Please run the following `Taskfile` targets to validate your changes:
2121

2222
- `task fmt`
2323
- `task lint`

examples/_logger/logrus/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.mongodb.go/mongo-driver/examples/logger/logrus
22

3-
go 1.22
3+
go 1.23
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../
66

examples/_logger/zap/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.mongodb.go/mongo-driver/examples/logger/zap
22

3-
go 1.22
3+
go 1.23
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../
66

examples/_logger/zerolog/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.mongodb.go/mongo-driver/examples/logger/zerolog
22

3-
go 1.22
3+
go 1.23
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../
66

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.22
1+
go 1.23
22

33
use (
44
.

internal/cmd/faas/awslambda/mongodb/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.mongodb.go/mongo-driver/internal/test/mongodb
22

3-
go 1.22
3+
go 1.23
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../../../
66

0 commit comments

Comments
 (0)