Skip to content

Commit 16c2ea0

Browse files
benjirewisBenjamin Rewis
authored andcommitted
GODRIVER-2518 Use Go 1.18 for Evergreen CI. (#1047)
1 parent d593ef8 commit 16c2ea0

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

.evergreen/config.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,91 +2047,91 @@ axes:
20472047
- id: os-ssl-32
20482048
display_name: OS
20492049
values:
2050-
- id: "windows-64-go-1-17"
2050+
- id: "windows-64-go-1-18"
20512051
display_name: "Windows 64-bit"
20522052
run_on:
20532053
- windows-64-vs2017-test
20542054
variables:
20552055
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2056-
GO_DIST: "C:\\golang\\go1.17"
2056+
GO_DIST: "C:\\golang\\go1.18"
20572057
PYTHON3_BINARY: "C:/python/Python38/python.exe"
20582058
VENV_BIN_DIR: "Scripts"
2059-
- id: "ubuntu1604-64-go-1-17"
2059+
- id: "ubuntu1604-64-go-1-18"
20602060
display_name: "Ubuntu 16.04"
20612061
run_on: ubuntu1604-build
20622062
variables:
2063-
GO_DIST: "/opt/golang/go1.17"
2063+
GO_DIST: "/opt/golang/go1.18"
20642064
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
20652065
# There is no crypt_shared library download for Ubuntu 16.04. Skip downloading it and let the
20662066
# tests use mongocryptd instead.
20672067
SKIP_CRYPT_SHARED_LIB_DOWNLOAD: "true"
2068-
- id: "osx-go-1-17"
2068+
- id: "osx-go-1-18"
20692069
display_name: "MacOS 10.15"
20702070
run_on: macos-1015
20712071
variables:
2072-
GO_DIST: "/opt/golang/go1.17"
2072+
GO_DIST: "/opt/golang/go1.18"
20732073
PYTHON3_BINARY: python3
20742074

20752075
# OSes that require >= 4.0 for SSL
20762076
- id: os-ssl-40
20772077
display_name: OS
20782078
values:
2079-
- id: "windows-64-go-1-17"
2079+
- id: "windows-64-go-1-18"
20802080
display_name: "Windows 64-bit"
20812081
run_on:
20822082
- windows-64-vs2017-test
20832083
variables:
20842084
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2085-
GO_DIST: "C:\\golang\\go1.17"
2085+
GO_DIST: "C:\\golang\\go1.18"
20862086
PYTHON3_BINARY: "C:/python/Python38/python.exe"
20872087
VENV_BIN_DIR: "Scripts"
2088-
- id: "ubuntu1804-64-go-1-17"
2088+
- id: "ubuntu1804-64-go-1-18"
20892089
display_name: "Ubuntu 18.04"
20902090
run_on: ubuntu1804-build
20912091
variables:
2092-
GO_DIST: "/opt/golang/go1.17"
2092+
GO_DIST: "/opt/golang/go1.18"
20932093
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
2094-
- id: "osx-go-1-17"
2094+
- id: "osx-go-1-18"
20952095
display_name: "MacOS 10.15"
20962096
run_on: macos-1015
20972097
variables:
2098-
GO_DIST: "/opt/golang/go1.17"
2098+
GO_DIST: "/opt/golang/go1.18"
20992099
PYTHON3_BINARY: python3
21002100

21012101
# OCSP linux tasks need to run against this OS since stapling is disabled on Ubuntu 18.04 (SERVER-51364)
21022102
- id: ocsp-rhel-70
21032103
display_name: OS
21042104
values:
2105-
- id: "rhel70-go-1-17"
2105+
- id: "rhel70-go-1-18"
21062106
display_name: "RHEL 7.0"
21072107
run_on: rhel70-build
21082108
variables:
2109-
GO_DIST: "/opt/golang/go1.17"
2109+
GO_DIST: "/opt/golang/go1.18"
21102110
PYTHON3_BINARY: "/opt/python/3.6/bin/python3"
21112111

21122112
- id: os-aws-auth
21132113
display_name: OS
21142114
values:
2115-
- id: "windows-64-vsMulti-small-go-1-17"
2115+
- id: "windows-64-vsMulti-small-go-1-18"
21162116
display_name: "Windows 64-bit"
21172117
run_on:
21182118
- windows-64-vsMulti-small
21192119
variables:
21202120
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2121-
GO_DIST: "C:\\golang\\go1.17"
2121+
GO_DIST: "C:\\golang\\go1.18"
21222122
SKIP_ECS_AUTH_TEST: true
21232123
PYTHON3_BINARY: "C:/python/Python38/python.exe"
2124-
- id: "ubuntu1804-64-go-1-17"
2124+
- id: "ubuntu1804-64-go-1-18"
21252125
display_name: "Ubuntu 18.04"
21262126
run_on: ubuntu1804-test
21272127
variables:
2128-
GO_DIST: "/opt/golang/go1.17"
2128+
GO_DIST: "/opt/golang/go1.18"
21292129
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
2130-
- id: "osx-go-1-17"
2130+
- id: "osx-go-1-18"
21312131
display_name: "MacOS 10.15"
21322132
run_on: macos-1015
21332133
variables:
2134-
GO_DIST: "/opt/golang/go1.17"
2134+
GO_DIST: "/opt/golang/go1.18"
21352135
SKIP_ECS_AUTH_TEST: true
21362136
SKIP_EC2_AUTH_TEST: true
21372137
PYTHON3_BINARY: python3
@@ -2193,7 +2193,7 @@ buildvariants:
21932193
run_on:
21942194
- ubuntu1804-build
21952195
expansions:
2196-
GO_DIST: "/opt/golang/go1.17"
2196+
GO_DIST: "/opt/golang/go1.18"
21972197
tasks:
21982198
- name: ".static-analysis"
21992199

@@ -2202,7 +2202,7 @@ buildvariants:
22022202
run_on:
22032203
- ubuntu1804-build
22042204
expansions:
2205-
GO_DIST: "/opt/golang/go1.17"
2205+
GO_DIST: "/opt/golang/go1.18"
22062206
tasks:
22072207
- name: ".performance"
22082208

@@ -2211,7 +2211,7 @@ buildvariants:
22112211
run_on:
22122212
- ubuntu1804-test
22132213
expansions:
2214-
GO_DIST: "/opt/golang/go1.17"
2214+
GO_DIST: "/opt/golang/go1.18"
22152215
tasks:
22162216
- name: ".compile-check"
22172217

@@ -2220,7 +2220,7 @@ buildvariants:
22202220
run_on:
22212221
- ubuntu1804-build
22222222
expansions:
2223-
GO_DIST: "/opt/golang/go1.17"
2223+
GO_DIST: "/opt/golang/go1.18"
22242224
tasks:
22252225
- name: "atlas-test"
22262226

@@ -2229,7 +2229,7 @@ buildvariants:
22292229
run_on:
22302230
- ubuntu1804-build
22312231
expansions:
2232-
GO_DIST: "/opt/golang/go1.17"
2232+
GO_DIST: "/opt/golang/go1.18"
22332233
tasks:
22342234
- name: "test-atlas-data-lake"
22352235

@@ -2288,22 +2288,22 @@ buildvariants:
22882288
- name: "aws-auth-test"
22892289

22902290
- matrix_name: "ocsp-test"
2291-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], ocsp-rhel-70: ["rhel70-go-1-17"] }
2291+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], ocsp-rhel-70: ["rhel70-go-1-18"] }
22922292
display_name: "OCSP ${version} ${ocsp-rhel-70}"
22932293
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
22942294
tasks:
22952295
- name: ".ocsp"
22962296

22972297
- matrix_name: "ocsp-test-windows"
2298-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["windows-64-go-1-17"] }
2298+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["windows-64-go-1-18"] }
22992299
display_name: "OCSP ${version} ${os-ssl-40}"
23002300
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
23012301
tasks:
23022302
# Windows MongoDB servers do not staple OCSP responses and only support RSA.
23032303
- name: ".ocsp-rsa !.ocsp-staple"
23042304

23052305
- matrix_name: "ocsp-test-macos"
2306-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["osx-go-1-17"] }
2306+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["osx-go-1-18"] }
23072307
display_name: "OCSP ${version} ${os-ssl-40}"
23082308
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
23092309
tasks:
@@ -2317,26 +2317,26 @@ buildvariants:
23172317
- name: ".versioned-api"
23182318

23192319
- matrix_name: "kms-tls-test"
2320-
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2320+
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
23212321
display_name: "KMS TLS ${os-ssl-40}"
23222322
tasks:
23232323
- name: ".kms-tls"
23242324

23252325
- matrix_name: "load-balancer-test"
23262326
# The LB software is only available on Ubuntu 18.04, so we don't test on all OSes.
2327-
matrix_spec: { version: ["5.0", "6.0", "latest", "rapid"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2327+
matrix_spec: { version: ["5.0", "6.0", "latest", "rapid"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
23282328
display_name: "Load Balancer Support ${version} ${os-ssl-40}"
23292329
tasks:
23302330
- name: ".load-balancer"
23312331

23322332
- matrix_name: "serverless"
2333-
matrix_spec: { os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2333+
matrix_spec: { os-ssl-40: ["ubuntu1804-64-go-1-18"] }
23342334
display_name: "Serverless ${os-ssl-40}"
23352335
tasks:
23362336
- "serverless_task_group"
23372337

23382338
- matrix_name: "kms-kmip-test"
2339-
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2339+
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
23402340
display_name: "KMS KMIP ${os-ssl-40}"
23412341
tasks:
23422342
- name: ".kms-kmip"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The MongoDB supported driver for Go.
2222
-------------------------
2323
## Requirements
2424

25-
- Go 1.10 or higher if using the driver as a dependency. Go 1.17 or higher if building the driver yourself. We aim to support the latest versions of Go.
25+
- Go 1.10 or higher if using the driver as a dependency. Go 1.18 or higher if building the driver yourself. We aim to support the latest versions of Go.
2626
- MongoDB 2.6 and higher.
2727

2828
-------------------------

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before starting to write code, look for existing [tickets](https://jira.mongodb.
1313
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
1414
applicable.
1515

16-
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.10 and requires Go 1.17 for development. Please run the following Make targets to validate your changes:
16+
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.10 and requires Go 1.18 for development. Please run the following Make targets to validate your changes:
1717
- `make fmt`
1818
- `make lint` (requires [golangci-lint](https://github.com/golangci/golangci-lint) and [lll](https://github.com/walle/lll) to be installed and available in the `PATH`)
1919
- `make test`

0 commit comments

Comments
 (0)