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

Replace aws-sdk-go v1 with aws-sdk-go-v2 #1189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erka
Copy link

@erka erka commented Oct 25, 2024

AWS announced that aws-sdk-go v1 entered the maintenance mode and will reach end of support by July 31, 2025. As many Go projects use go-migrate internally they still references the aws-sdk-go v1. Even go-migrate itself has both versions in the go.mod. This PR fixes it.

https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/

related #739

AWS announced that aws-sdk-go v1 entered the maintenance mode and will
reach end of support by July 31, 2025. As many Go projects use
go-migrate internally they still references the aws-sdk-go v1. Even
go-migrate itself has both versions in the go.mod. This PR fixes it.

https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/
@erka erka marked this pull request as ready for review October 25, 2024 11:56
@erka
Copy link
Author

erka commented Oct 25, 2024

github.com/snowflakedb/gosnowflake was updated to v1.11.2 in order to resolve this issue.

github.com/aws/aws-sdk-go-v2/feature/s3/[email protected]/download.go:439:27: 
invalid operation: resp.ContentLength > 0 (mismatched types *int64 and untyped int)

driver := &s3Driver{
config: config,
s3client: s3client,
migrations: source.NewMigrations(),
ctx: ctx,
Copy link

Choose a reason for hiding this comment

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

Better off not storing ctx in s3Driver, instead pass it directly to loadMigrations

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your feedback, Philip! I've updated the sources accordingly.

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