Skip to content

Commit

Permalink
GODRIVER-2174 Bump minimum Go version to 1.13. (mongodb#1100)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
  • Loading branch information
benjirewis and matthewdale committed Nov 4, 2022
1 parent 46b693a commit 7523633
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .evergreen/config.yml
Expand Up @@ -1799,13 +1799,15 @@ tasks:
vars:
MONGO_GO_DRIVER_COMPRESSOR: "snappy"

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

# Build with whatever the latest Go version is that we're using for tests
- name: build
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -13,7 +13,7 @@ Before starting to write code, look for existing [tickets](https://jira.mongodb.
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
applicable.

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:
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:
- `make fmt`
- `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`)
- `make test`
Expand Down
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -22,8 +22,9 @@ The MongoDB supported driver for Go.
-------------------------
## Requirements

- 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.
- MongoDB 2.6 and higher.
- Go 1.13 or higher. We aim to support the latest versions of Go.
- Go 1.18 or higher is required to run the driver test suite.
- MongoDB 3.6 and higher.

-------------------------
## Installation
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module go.mongodb.org/mongo-driver

go 1.10
go 1.13

retract (
[v1.7.0, v1.7.1] // Contains data race bug in background connection establishment.
Expand Down

0 comments on commit 7523633

Please sign in to comment.