github.com/aws/aws-sdk-go (v1) is deprecated and reached end of support on
July 31, 2025. make lint reports 11 staticcheck SA1019 warnings for the
q_dev plugin. These are currently non-blocking in scripts-local/build.sh
(lint is a warning), but should be migrated to aws-sdk-go-v2.
Affected files:
backend/plugins/q_dev/tasks/identity_client.gobackend/plugins/q_dev/tasks/s3_client.gobackend/plugins/q_dev/tasks/s3_data_extractor.gobackend/plugins/q_dev/tasks/s3_file_collector.go
Required changes:
- Replace
github.com/aws/aws-sdk-go/awsand.../aws/credentialswith the v2 equivalents (github.com/aws/aws-sdk-go-v2/aws,.../config,.../credentials). - Replace
.../aws/sessionwith v2 config loading (config.LoadDefaultConfig). - Replace
.../service/identitystoreand.../service/s3with their v2 service clients (aws-sdk-go-v2/service/identitystore,.../service/s3). - Update
go.mod/go.sumaccordingly and remove the v1 dependency once unused. - Re-run
make lintto confirm theSA1019warnings are gone, then restore blocking lint inscripts-local/build.sh.