Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade aws go sdk to v2 #373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rt-joe
Copy link

@rt-joe rt-joe commented May 16, 2024

Upgrades aws go sdk v1 to v2. AWS announced end-of-support for go sdk v1 starting July 31, 2025.

Migration guide

return func(w http.ResponseWriter, r *http.Request) {
compressed, err := ioutil.ReadAll(r.Body)
compressed, err := io.ReadAll(r.Body)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ioutil is deprecated

return p.callCount <= 2
}

func (p *PaginatorMock) NextPage(ctx context.Context, optFns ...func(*timestreamquery.Options)) (*timestreamquery.QueryOutput, error) {
Copy link
Author

@rt-joe rt-joe May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HasMorePages() and NextPage() mocks are hacky but I just wanted to get the tests passing

@dpattmann
Copy link
Owner

Hi @rt-joe, can you please squash your commits?

@rt-joe rt-joe force-pushed the upgrade-go-sdk-v2 branch 2 times, most recently from 3c185e4 to ff30305 Compare May 25, 2024 11:38
@rt-joe
Copy link
Author

rt-joe commented May 25, 2024

@dpattmann commits squashed. Note I have not been able to test this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants