Skip to content

Commit 99861c0

Browse files
committed
lang: bump minimum go version to 1.19 (#2338)
1 parent 2ac0a53 commit 99861c0

File tree

468 files changed

+1046
-647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+1046
-647
lines changed

.changelog/c381b0db80b8410685785fa974826bf3.json

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/go.yml

Lines changed: 2 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
go-version: [1.19, "1.20"]
24+
go-version: ["1.19", "1.20", "1.21"]
2525
steps:
2626
- uses: actions/checkout@v2
2727

@@ -41,69 +41,13 @@ jobs:
4141
- name: Test
4242
run: make ci-test-no-generate
4343

44-
deprecated-unix-tests:
45-
needs: unix-tests
46-
name: Deprecated Go version Unix SDK Tests
47-
runs-on: ${{ matrix.os }}
48-
strategy:
49-
matrix:
50-
os: [ubuntu-latest, macos-latest]
51-
go-version: [1.15, 1.16, 1.17, 1.18]
52-
exclude:
53-
- os: macos-latest
54-
go-version: 1.15
55-
- os: macos-latest
56-
go-version: 1.16
57-
steps:
58-
- uses: actions/checkout@v2
59-
60-
- name: Set up Go
61-
uses: actions/setup-go@v2
62-
with:
63-
go-version: ${{ matrix.go-version }}
64-
65-
- name: Find smithy-go
66-
env:
67-
RUNNER_TMPDIR: ${{ runner.temp }}
68-
run: ./ci-find-smithy-go.sh
69-
70-
- name: Test
71-
run: make ci-test-no-generate
72-
7344
windows-tests:
7445
name: Windows SDK Tests
7546
runs-on: ${{ matrix.os }}
7647
strategy:
7748
matrix:
7849
os: [windows-latest]
79-
go-version: [1.19, "1.20"]
80-
env:
81-
EACHMODULE_SKIP: "internal\\repotools\\changes"
82-
steps:
83-
- uses: actions/checkout@v2
84-
85-
- name: Set up Go
86-
uses: actions/setup-go@v2
87-
with:
88-
go-version: ${{ matrix.go-version }}
89-
90-
- name: Find smithy-go
91-
shell: bash
92-
env:
93-
RUNNER_TMPDIR: ${{ runner.temp }}
94-
run: ./ci-find-smithy-go.sh
95-
96-
- name: Test
97-
run: make vet build unit-test
98-
99-
deprecated-windows-tests:
100-
needs: windows-tests
101-
name: Deprecated Go version Windows SDK Tests
102-
runs-on: ${{ matrix.os }}
103-
strategy:
104-
matrix:
105-
os: [windows-latest]
106-
go-version: [1.15, 1.16, 1.17, 1.18]
50+
go-version: ["1.19", "1.20", "1.21"]
10751
env:
10852
EACHMODULE_SKIP: "internal\\repotools\\changes"
10953
steps:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BUILD_TAGS=-tags "example,codegen,integration,ec2env,perftest"
1010

1111
SMITHY_GO_SRC ?= $(shell pwd)/../smithy-go
1212

13-
SDK_MIN_GO_VERSION ?= 1.15
13+
SDK_MIN_GO_VERSION ?= 1.19
1414

1515
EACHMODULE_FAILFAST ?= true
1616
EACHMODULE_FAILFAST_FLAG=-fail-fast=${EACHMODULE_FAILFAST}

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
`aws-sdk-go-v2` is the v2 AWS SDK for the Go programming language.
66

7-
The v2 SDK requires a minimum version of `Go 1.15`.
7+
The v2 SDK requires a minimum version of `Go 1.19`.
88

99
Check out the [release notes](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) for information about the latest bug
1010
fixes, updates, and features added to the SDK.
@@ -23,6 +23,15 @@ following in the AWS SDKs and Tools Shared Configuration and Credentials Referen
2323
* [AWS SDKs and Tools Maintenance Policy](https://docs.aws.amazon.com/credref/latest/refdocs/maint-policy.html)
2424
* [AWS SDKs and Tools Version Support Matrix](https://docs.aws.amazon.com/credref/latest/refdocs/version-support-matrix.html)
2525

26+
### Go version support policy
27+
28+
The v2 SDK follows the upstream [release policy](https://go.dev/doc/devel/release#policy)
29+
with an additional six months of support for the most recently deprecated
30+
language version.
31+
32+
**AWS reserves the right to drop support for unsupported Go versions earlier to
33+
address critical security issues.**
34+
2635
## Getting started
2736
To get started working with the SDK setup your project for Go modules, and retrieve the SDK dependencies with `go get`.
2837
This example shows how you can use the v2 SDK to make an API request using the SDK's [Amazon DynamoDB] client.

aws/protocol/eventstream/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream
22

3-
go 1.15
3+
go 1.19
44

55
require github.com/aws/smithy-go v1.15.0
66

config/go.mod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/aws-sdk-go-v2/config
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.21.2
@@ -14,6 +14,12 @@ require (
1414
github.com/google/go-cmp v0.5.8
1515
)
1616

17+
require (
18+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 // indirect
19+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37 // indirect
20+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.37 // indirect
21+
)
22+
1723
replace github.com/aws/aws-sdk-go-v2 => ../
1824

1925
replace github.com/aws/aws-sdk-go-v2/credentials => ../credentials/

credentials/go.mod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/aws-sdk-go-v2/credentials
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.21.2
@@ -12,6 +12,12 @@ require (
1212
github.com/google/go-cmp v0.5.8
1313
)
1414

15+
require (
16+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 // indirect
17+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37 // indirect
18+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.37 // indirect
19+
)
20+
1521
replace github.com/aws/aws-sdk-go-v2 => ../
1622

1723
replace github.com/aws/aws-sdk-go-v2/feature/ec2/imds => ../feature/ec2/imds/

example/service/dynamodb/createTable/go.mod

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/createTable
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.21.2
77
github.com/aws/aws-sdk-go-v2/config v1.19.1
88
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.23.0
99
)
1010

11+
require (
12+
github.com/aws/aws-sdk-go-v2/credentials v1.13.43 // indirect
13+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.13 // indirect
14+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 // indirect
15+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37 // indirect
16+
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.45 // indirect
17+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.15 // indirect
18+
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.37 // indirect
19+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.37 // indirect
20+
github.com/aws/aws-sdk-go-v2/service/sso v1.15.2 // indirect
21+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.3 // indirect
22+
github.com/aws/aws-sdk-go-v2/service/sts v1.23.2 // indirect
23+
github.com/aws/smithy-go v1.15.0 // indirect
24+
github.com/jmespath/go-jmespath v0.4.0 // indirect
25+
)
26+
1127
replace github.com/aws/aws-sdk-go-v2 => ../../../../
1228

1329
replace github.com/aws/aws-sdk-go-v2/config => ../../../../config/

example/service/dynamodb/createTable/go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC
1111
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1212
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1313
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
14-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1514
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1615
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
1716
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

example/service/dynamodb/scanItems/go.mod

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/listItems
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.21.2
@@ -9,6 +9,23 @@ require (
99
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.23.0
1010
)
1111

12+
require (
13+
github.com/aws/aws-sdk-go-v2/credentials v1.13.43 // indirect
14+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.13 // indirect
15+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 // indirect
16+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37 // indirect
17+
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.45 // indirect
18+
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.15.7 // indirect
19+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.15 // indirect
20+
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.37 // indirect
21+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.37 // indirect
22+
github.com/aws/aws-sdk-go-v2/service/sso v1.15.2 // indirect
23+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.3 // indirect
24+
github.com/aws/aws-sdk-go-v2/service/sts v1.23.2 // indirect
25+
github.com/aws/smithy-go v1.15.0 // indirect
26+
github.com/jmespath/go-jmespath v0.4.0 // indirect
27+
)
28+
1229
replace github.com/aws/aws-sdk-go-v2 => ../../../../
1330

1431
replace github.com/aws/aws-sdk-go-v2/config => ../../../../config/

0 commit comments

Comments
 (0)