-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
base: master
Are you sure you want to change the base?
Conversation
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/
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) |
source/aws_s3/s3.go
Outdated
driver := &s3Driver{ | ||
config: config, | ||
s3client: s3client, | ||
migrations: source.NewMigrations(), | ||
ctx: ctx, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Hey 👋🏻, any update on this? |
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