Skip to content

Commit 0ba8f0f

Browse files
authored
bump minimum go version to 1.19
2 parents 8b7baed + fe49d91 commit 0ba8f0f

File tree

7 files changed

+17
-211
lines changed

7 files changed

+17
-211
lines changed

.github/workflows/go.yml

+1-91
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- 'feat-**'
87
pull_request:
98
branches:
109
- main
@@ -22,6 +21,7 @@ jobs:
2221
go-version:
2322
- 1.19.x
2423
- 1.20.x
24+
- 1.21.x
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
@@ -38,93 +38,3 @@ jobs:
3838
# SDK is currently being released with go 1.18, this cannot perform
3939
# ci-tests task until the release system is updated to go 1.19.
4040
run: make unit-no-verify
41-
42-
deprecated-go-module-tests:
43-
needs: full-test
44-
name: Deprecated Go versions with module support
45-
# Tests for deprecated Go versions with module support
46-
runs-on: ${{ matrix.os }}
47-
strategy:
48-
matrix:
49-
os: [ubuntu-latest, macos-latest, windows-latest]
50-
go-version:
51-
- 1.12.x
52-
- 1.13.x
53-
- 1.14.x
54-
- 1.15.x
55-
- 1.16.x
56-
- 1.17.x
57-
- 1.18.x
58-
exclude:
59-
- os: macos-latest
60-
go-version: 1.12.x
61-
- os: macos-latest
62-
go-version: 1.13.x
63-
- os: macos-latest
64-
go-version: 1.14.x
65-
- os: macos-latest
66-
go-version: 1.15.x
67-
- os: macos-latest
68-
go-version: 1.16.x
69-
steps:
70-
- name: Checkout
71-
uses: actions/checkout@v3
72-
with:
73-
fetch-depth: 1
74-
75-
- name: Setup Go
76-
uses: actions/setup-go@v4
77-
with:
78-
go-version: ${{ matrix.go-version }}
79-
80-
- name: Test
81-
shell: bash
82-
run: make unit-old-go-race-cover
83-
84-
deprecated-pre-go-module-tests:
85-
needs: full-test
86-
name: Deprecated Go versions without module support
87-
# Tests for deprecated Go versions without module support
88-
#
89-
# setup-go doesn't play well with old Go versions that need GOPATH
90-
# * https://github.com/actions/setup-go/issues/14
91-
# * https://github.com/actions/setup-go/issues/12
92-
runs-on: ${{ matrix.os }}
93-
strategy:
94-
matrix:
95-
os: [ubuntu-latest]
96-
go-version:
97-
- 1.5.x
98-
- 1.6.x
99-
- 1.7.x
100-
- 1.8.x
101-
- 1.9.x
102-
- 1.10.x
103-
- 1.11.x
104-
- 1.12.x
105-
include:
106-
- os: windows-latest
107-
go-version: 1.12.x
108-
steps:
109-
- name: Checkout
110-
uses: actions/checkout@v3
111-
with:
112-
fetch-depth: 1
113-
path: go/src/github.com/aws/aws-sdk-go
114-
115-
- name: Setup Go
116-
uses: actions/setup-go@v4
117-
with:
118-
go-version: ${{ matrix.go-version }}
119-
cache: false
120-
121-
- name: Setup Go env
122-
shell: bash
123-
run: |
124-
echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV
125-
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH
126-
127-
- name: Test
128-
shell: bash
129-
working-directory: go/src/github.com/aws/aws-sdk-go
130-
run: make get-deps unit-old-go-race-cover

CHANGELOG_PENDING.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
### SDK Features
2+
* `aws`: Bump minimum go version to 1.19.
3+
* See https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/.
24

35
### SDK Enhancements
46

Gopkg.lock

-16
This file was deleted.

Gopkg.toml

-43
This file was deleted.

README.md

+11-34
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![API Reference](https://img.shields.io/badge/api-reference-blue.svg)](https://docs.aws.amazon.com/sdk-for-go/api) [![Join the chat at https://gitter.im/aws/aws-sdk-go](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aws/aws-sdk-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build status](https://github.com/aws/aws-sdk-go/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/aws/aws-sdk-go/actions/workflows/go.yml) [![Apache V2 License](https://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/aws/aws-sdk-go/blob/main/LICENSE.txt)
44

5-
aws-sdk-go is the official AWS SDK for the Go programming language.
5+
aws-sdk-go is the v1 AWS SDK for the Go programming language.
66

77
Checkout our [release notes](https://github.com/aws/aws-sdk-go/releases) for
88
information about the latest bug fixes, updates, and features added to the SDK.
@@ -19,46 +19,14 @@ Jump To:
1919
## Getting Started
2020

2121
### Installing
22-
Use `go get` to retrieve the SDK to add it to your `GOPATH` workspace, or
23-
project's Go module dependencies.
22+
Use `go get` to retrieve the SDK to add it to your project's Go module dependencies.
2423

2524
go get github.com/aws/aws-sdk-go
2625

2726
To update the SDK use `go get -u` to retrieve the latest version of the SDK.
2827

2928
go get -u github.com/aws/aws-sdk-go
3029

31-
### Dependencies
32-
33-
The SDK includes a `vendor` folder containing the runtime dependencies of the
34-
SDK. The metadata of the SDK's dependencies can be found in the Go module file
35-
`go.mod` or Dep file `Gopkg.toml`.
36-
37-
### Go Modules
38-
39-
If you are using Go modules, your `go get` will default to the latest tagged
40-
release version of the SDK. To get a specific release version of the SDK use
41-
`@<tag>` in your `go get` command.
42-
43-
go get github.com/aws/[email protected]
44-
45-
To get the latest SDK repository change use `@latest`.
46-
47-
go get github.com/aws/aws-sdk-go@latest
48-
49-
### Go 1.5
50-
51-
If you are using Go 1.5 without vendoring enabled, (`GO15VENDOREXPERIMENT=1`),
52-
you will need to use `...` when retrieving the SDK to get its dependencies.
53-
54-
go get github.com/aws/aws-sdk-go/...
55-
56-
This will still include the `vendor` folder. The `vendor` folder can be deleted
57-
if not used by your environment.
58-
59-
rm -rf $GOPATH/src/github.com/aws/aws-sdk-go/vendor
60-
61-
6230
## Quick Examples
6331

6432
### Complete SDK Example
@@ -490,6 +458,15 @@ For information about maintenance and support for SDK major versions and our und
490458
* [AWS SDKs and Tools Maintenance Policy](https://docs.aws.amazon.com/credref/latest/refdocs/maint-policy.html)
491459
* [AWS SDKs and Tools Version Support Matrix](https://docs.aws.amazon.com/credref/latest/refdocs/version-support-matrix.html)
492460

461+
### Go version support policy
462+
463+
The v2 SDK follows the upstream [release policy](https://go.dev/doc/devel/release#policy)
464+
with an additional six months of support for the most recently deprecated
465+
language version.
466+
467+
**AWS reserves the right to drop support for unsupported Go versions earlier to
468+
address critical security issues.**
469+
493470
## Resources
494471

495472
[Developer guide](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/welcome.html) - This document

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module github.com/aws/aws-sdk-go
22

3+
go 1.19
4+
35
require (
46
github.com/jmespath/go-jmespath v0.4.0
57
github.com/pkg/errors v0.9.1
68
golang.org/x/net v0.1.0
79
)
810

9-
go 1.11
11+
require golang.org/x/text v0.4.0 // indirect

go.sum

-26
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,10 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
99
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1111
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
12-
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
13-
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
14-
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
15-
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
16-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
17-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
18-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
1912
golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0=
2013
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
21-
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
22-
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
23-
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
24-
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
25-
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
26-
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
27-
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
28-
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
29-
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
30-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
31-
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
32-
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
33-
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
34-
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
3514
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
3615
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
37-
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
38-
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
39-
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
40-
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
41-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
4216
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4317
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
4418
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

0 commit comments

Comments
 (0)