diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 356fccecbf..8d184a435c 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -1774,13 +1774,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 diff --git a/README.md b/README.md index 622b425ed7..60ebd25285 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ The MongoDB supported driver for Go. ------------------------- ## Requirements -- 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. +- 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. ------------------------- diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 54ba4a4d50..e8416c6aa5 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -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.18 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` diff --git a/go.mod b/go.mod index e2e6c2e608..0ad9a75f2b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.mongodb.org/mongo-driver -go 1.10 +go 1.13 retract ( v1.10.0 // Contains a possible data corruption bug in RewrapManyDataKey when using libmongocrypt versions less than 1.5.2.