-
Notifications
You must be signed in to change notification settings - Fork 640
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
service/s3 typo in api_client.go results in undefined: presignedurlcust.AddAsIsPresigingMiddleware #2529
Comments
@tonygooldrr Really sorry about this -- it's actually the other way around -- the typo was fixed today, and now your s3 service is out-of-date. If you upgrade your s3 client the issue should go away.
|
This is my fault. We received an external contribution to correct the typo in the internal package from I failed to consider the scenario where a user could be broken if they depended on two other SDK modules that use this module, and upgraded only one of them. You have appeared to hit that with the We will guard ourselves against these changes going forward. I've documented this as a cross-module sharp edge internally. |
FYI - I'm going to restore this as an alias to the now correctly-named method to preserve backwards compatibility going forward. See the linked PR. That will go out in tomorrow's release. I'll go ahead and mark this as resolved once that PR has merged. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Hey @lucix-aws, thanks for the insights and the quick fix. Just to give you some insights as well, basically all of our ~30 dependabot PRs failed today because of this. You mentioned:
However our dependabot job is updating all direct dependencies, so this can't be the issue. I guess it's hidden in the transitive dependencies somewhere, in one case we only have these two as direct dependencies:
This pulled in
So we're looking forward to the next release and dependabot run, hoping it works then without manual intervention 🙂 |
@lucix-aws I can confirm this is fixed in s3 v1.51.2, thanks for the quick turnaround! |
My example was just the most straightforward case. Any dependency shuffling that upgraded only some of the modules consuming the module with the breakfix would hit this error, yours is an example of that. |
Describe the bug
I cannot compile using the current SDK because of what appears to be a typo. "Presiging" should be "Presigning".
Expected Behavior
The project compiles.
Current Behavior
The project fails to compile with the following error:
Reproduction Steps
Attempt a go build on the following main.go:
Possible Solution
Fix the typo so it reads
presignedurlcust.AddAsIsPresigningMiddleware
.Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/config v1.27.5
github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1
Compiler and Version used
go version go1.22.0 darwin/arm64
Operating System and version
macOS 14.3
The text was updated successfully, but these errors were encountered: