You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate off deprecated feature/s3/manager to feature/s3/transfermanager (16 SA1019 sites suppressed in #923) #932
Found while fixing #923 (making make check's staticcheck step blocking).
github.com/aws/aws-sdk-go-v2/feature/s3/manager (v1.22.18 in go.mod) is deprecated: "superceded by feature/s3/transfermanager" (aws/aws-sdk-go-v2#3306). staticcheck reports SA1019 at 16 sites in four packages:
pkg/agent/queue_runner.go: Uploader field, NewUploader, Upload (queue result upload from spored)
pkg/aws/imagebuilder.go: NewUploader with options, Upload
pkg/pipeline/data_handoff.go: Uploader and Downloader fields, constructors, Upload, two Download calls
#923 suppresses each with a line-scoped //lint:ignore SA1019 ... (#<this issue>) rather than migrating, because this is not a mechanical rename: transfermanager has a different API shape (UploadObject/DownloadObject/GetObject with their own input types), different defaults for part size, concurrency and checksums, and pkg/pipeline's Download(ctx, io.WriterAt, ...) usage needs re-plumbing. Three of the four call sites run inside spored on instances, so a behaviour change there is only visible on real hardware.
To do: migrate the four packages to feature/s3/transfermanager, preserving part size/concurrency where imagebuilder.go sets them, and delete the lint:ignore lines (staticcheck will report each one as an unused directive once the deprecated call is gone, so none can be left behind).
Done when:grep -rn 'feature/s3/manager' --include=*.go . is empty, go.mod no longer requires it, and staticcheck ./... is clean without the ignores.
Activity
Migrate S3 transfers off the deprecated feature/s3/manager to transfe…
Migrate S3 transfers off the deprecated feature/s3/manager to transfe…
Migrate S3 transfers off the deprecated feature/s3/manager to transfe…