-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Update AWS Go SDK from v1 to v2 in Go client templates (#3) #21653
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
Conversation
* Initial plan * Update AWS Go SDK from v1 to v2 in Go client templates Co-authored-by: dennismouwen-eye <[email protected]> * Final validation: AWS SDK v2 integration working correctly Co-authored-by: dennismouwen-eye <[email protected]> * Fix AWS v4 signature implementation: retrieve credentials properly from provider Co-authored-by: dennismouwen-eye <[email protected]> * Fix AWS v4 signature payload hash: properly compute SHA-256 hash for request body Co-authored-by: dennismouwen-eye <[email protected]> * Implement proper payload hashing * Revert go.sum file to original state as requested Co-authored-by: dennismouwen-eye <[email protected]> * Revert go.mod and rename import alias from v4 back to awsv4 Co-authored-by: dennismouwen-eye <[email protected]> * Revert go.mod file to original state removing all changes Co-authored-by: dennismouwen-eye <[email protected]> * Rename credentials import to awscredentials alias as requested Co-authored-by: dennismouwen-eye <[email protected]> * Fix spacing * Fix credentials and imports * Update aws sdk to latest version --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: dennismouwen-eye <[email protected]> Co-authored-by: Dennis Mouwen <[email protected]>
| awscredentials "github.com/aws/aws-sdk-go/aws/credentials" | ||
| awsv4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" | ||
| awscredentials "github.com/aws/aws-sdk-go-v2/credentials" | ||
| "crypto/sha256" |
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.
thanks for the pr but looks like this line is not indented correctly
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.
Updated!
|
please follow step 3 to update the samples so that the ci can verify the change |
I did but there were no changed files |
|
tested locally and the result is good. will add some tests for the aws signature option in another PR instead. thanks for the contribution |
|
update: merged #21657 to add a new sample covering the aws signature option |
… (OpenAPITools#21653) * Update AWS Go SDK from v1 to v2 in Go client templates (OpenAPITools#3) * Initial plan * Update AWS Go SDK from v1 to v2 in Go client templates Co-authored-by: dennismouwen-eye <[email protected]> * Final validation: AWS SDK v2 integration working correctly Co-authored-by: dennismouwen-eye <[email protected]> * Fix AWS v4 signature implementation: retrieve credentials properly from provider Co-authored-by: dennismouwen-eye <[email protected]> * Fix AWS v4 signature payload hash: properly compute SHA-256 hash for request body Co-authored-by: dennismouwen-eye <[email protected]> * Implement proper payload hashing * Revert go.sum file to original state as requested Co-authored-by: dennismouwen-eye <[email protected]> * Revert go.mod and rename import alias from v4 back to awsv4 Co-authored-by: dennismouwen-eye <[email protected]> * Revert go.mod file to original state removing all changes Co-authored-by: dennismouwen-eye <[email protected]> * Rename credentials import to awscredentials alias as requested Co-authored-by: dennismouwen-eye <[email protected]> * Fix spacing * Fix credentials and imports * Update aws sdk to latest version --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: dennismouwen-eye <[email protected]> Co-authored-by: Dennis Mouwen <[email protected]> * Update indenting --------- Co-authored-by: Copilot <[email protected]>
Update AWS Go SDK from v1 to v2, as v1 reaches end of support on July 31st.
Fixes #21347
@antihax @grokify @kemokemo @jirikuncar @ph4r5h4d @lwj5
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)"fixes #123"present in the PR description)