Skip to content

Commit 428870b

Browse files
GODRIVER-3515 Bump the minimum Go Version to 1.19 (#2054)
1 parent 3a631de commit 428870b

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The MongoDB Go driver follows [semantic versioning](https://semver.org/) for its
1919

2020
## Requirements
2121

22-
- Go 1.18 or higher. We aim to support the latest versions of Go.
22+
- Go 1.19 or higher. We aim to support the latest versions of Go.
2323
- Go 1.23 or higher is required to run the driver test suite.
2424
- MongoDB 4.0 and higher.
2525

docs/CONTRIBUTING.md

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

20-
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:
20+
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:
2121

2222
- `task fmt`
2323
- `task lint`

docs/migration-2.0.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Migrating from 1.x to 2.0
22

3-
The minimum supported version of Go for v2 is 1.18.
4-
53
To upgrade imports of the Go Driver from v1 to v2, we recommend using [marwan-at-work/mod
64
](https://github.com/marwan-at-work/mod):
75

etc/compile_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e # exit when any command fails
33
set -x # show all commands being run
44

5-
: ${GC:=go${GO_VERSION="1.18"}}
5+
: ${GC:=go${GO_VERSION="1.19"}}
66

77
COMPILE_CHECK_DIR="internal/cmd/compilecheck"
88
ARCHITECTURES=("386" "arm" "arm64" "ppc64le" "s390x")

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/v2
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/davecgh/go-spew v1.1.1

internal/cmd/benchmark/go.mod

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

3-
go 1.18
3+
go 1.19
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../
66

internal/cmd/compilecheck/go.mod

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

3-
go 1.18
3+
go 1.19
44

55
replace go.mongodb.org/mongo-driver/v2 => ../../../
66

internal/test/compilecheck/compile_check_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// requires a version of klauspost/compress that is not compatible with the Go
2828
// Driver. Must use GOWORK=off to run this test.
2929

30-
const minSupportedVersion = "1.18"
30+
const minSupportedVersion = "1.19"
3131

3232
func TestCompileCheck(t *testing.T) {
3333
cwd, err := os.Getwd()

0 commit comments

Comments
 (0)