diff --git a/README.md b/README.md index ea1d9e8b1d..2beeab3409 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ See the following resources to learn more about upgrading from version 1.x to 2. ## Requirements -- Go 1.18 or higher. We aim to support the latest versions of Go. +- Go 1.19 or higher. We aim to support the latest versions of Go. - Go 1.23 or higher is required to run the driver test suite. - MongoDB 4.0 and higher. diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index cd67cdaee3..6f954fb56e 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -17,7 +17,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.18 and requires Go 1.23 for development. Please run the following `Taskfile` 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.19 and requires Go 1.23 for development. Please run the following `Taskfile` targets to validate your changes: - `task fmt` - `task lint` diff --git a/docs/migration-2.0.md b/docs/migration-2.0.md index b98bf6bffd..badee70de5 100644 --- a/docs/migration-2.0.md +++ b/docs/migration-2.0.md @@ -1,7 +1,5 @@ # Migrating from 1.x to 2.0 -The minimum supported version of Go for v2 is 1.18. - To upgrade imports of the Go Driver from v1 to v2, we recommend using [marwan-at-work/mod ](https://github.com/marwan-at-work/mod): diff --git a/etc/compile_check.sh b/etc/compile_check.sh index 7f5e6965de..457b8e9e92 100755 --- a/etc/compile_check.sh +++ b/etc/compile_check.sh @@ -2,7 +2,7 @@ set -e # exit when any command fails set -x # show all commands being run -: ${GC:=go${GO_VERSION="1.18"}} +: ${GC:=go${GO_VERSION="1.19"}} COMPILE_CHECK_DIR="internal/cmd/compilecheck" ARCHITECTURES=("386" "arm" "arm64" "ppc64le" "s390x") diff --git a/go.mod b/go.mod index 1a36332fcb..d418fcc8ce 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.mongodb.org/mongo-driver/v2 -go 1.18 +go 1.19 require ( github.com/davecgh/go-spew v1.1.1 diff --git a/internal/cmd/benchmark/go.mod b/internal/cmd/benchmark/go.mod index 5822332b26..ff39a0d721 100644 --- a/internal/cmd/benchmark/go.mod +++ b/internal/cmd/benchmark/go.mod @@ -1,6 +1,6 @@ module go.mongodb.go/mongo-driver/internal/cmd/benchmark -go 1.18 +go 1.19 replace go.mongodb.org/mongo-driver/v2 => ../../../ diff --git a/internal/cmd/compilecheck/go.mod b/internal/cmd/compilecheck/go.mod index 94cdce400e..2c08d49d20 100644 --- a/internal/cmd/compilecheck/go.mod +++ b/internal/cmd/compilecheck/go.mod @@ -1,6 +1,6 @@ module go.mongodb.go/mongo-driver/internal/cmd/compilecheck -go 1.18 +go 1.19 replace go.mongodb.org/mongo-driver/v2 => ../../../ diff --git a/internal/test/compilecheck/compile_check_test.go b/internal/test/compilecheck/compile_check_test.go index 35daaa787f..831b02053f 100644 --- a/internal/test/compilecheck/compile_check_test.go +++ b/internal/test/compilecheck/compile_check_test.go @@ -27,7 +27,7 @@ import ( // requires a version of klauspost/compress that is not compatible with the Go // Driver. Must use GOWORK=off to run this test. -const minSupportedVersion = "1.18" +const minSupportedVersion = "1.19" func TestCompileCheck(t *testing.T) { cwd, err := os.Getwd()