Skip to content

Commit 423be54

Browse files
GODRIVER-2174 Bump minimum Go version to 1.13. (#1100)
Co-authored-by: Matt Dale <[email protected]>
1 parent 39194dd commit 423be54

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.evergreen/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,13 +1774,15 @@ tasks:
17741774
vars:
17751775
MONGO_GO_DRIVER_COMPRESSOR: "snappy"
17761776

1777-
- name: go1.10-build
1777+
- name: go1.13-build
17781778
tags: ["compile-check"]
17791779
commands:
17801780
- func: run-make
17811781
vars:
17821782
targets: "build"
1783-
BUILD_ENV: "PATH=/opt/golang/go1.10/bin:$PATH GOROOT=/opt/golang/go1.10"
1783+
# Use GO111MODULE=off to disable modules, as go versions less than
1784+
# 1.16 will complain about the retract directives in go.mod.
1785+
BUILD_ENV: "GO111MODULE=off PATH=/opt/golang/go1.13/bin:$PATH GOROOT=/opt/golang/go1.13"
17841786

17851787
# Build with whatever the latest Go version is that we're using for tests
17861788
- name: build

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ 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.18 or higher if building the driver yourself. We aim to support the latest versions of Go.
25+
- Go 1.13 or higher. We aim to support the latest versions of Go.
26+
- Go 1.18 or higher is required to run the driver test suite.
2627
- MongoDB 3.6 and higher.
2728

2829
-------------------------

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.18 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.13 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`

go.mod

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

3-
go 1.10
3+
go 1.13
44

55
retract (
66
v1.10.0 // Contains a possible data corruption bug in RewrapManyDataKey when using libmongocrypt versions less than 1.5.2.

0 commit comments

Comments
 (0)