Repository navigation
refactor(io/gocloud)!: remove deprecated compatibility shims - #2178
Merged
zeroshade merged 1 commit intoOct 13, 2026
Merged
Conversation
The io/gocloud package kept aliases and wrappers that redirected to the per-cloud subpackages after the split in apache#1874 and apache#1961: BlobFileIO, KeyExtractor, ErrEmptyObjectKey and ErrUnsupportedObjectAuthority now live in io/gocloud/blobfs, ParseAWSConfig in io/gocloud/s3, and ParseGCSConfig in io/gocloud/gcs. Import those packages directly instead. io/gocloud itself still registers every gocloud-backed FileIO, and its registration test is kept. This is a breaking change for callers still using the shims. Part of the v1.0 API cleanup in apache#2062. Signed-off-by: laskoviymishka <[email protected]>
laskoviymishka
marked this pull request as ready for review
October 11, 2026 11:16
zeroshade
approved these changes
Oct 13, 2026
zeroshade
left a comment
Member
There was a problem hiding this comment.
Clean removal. No references to the removed io/gocloud aliases or wrappers (BlobFileIO, KeyExtractor, ErrEmptyObjectKey, ErrUnsupportedObjectAuthority, ParseAWSConfig, ParseGCSConfig) remain on the branch or on current main outside the deleted compat_test.go, and the package doc still matches what's left: blank imports of azure, gcs and s3. TestRegistersAllCloudSchemes moves over unchanged and imports only io/gocloud, so it still catches a dropped blank import. Merged with current main (clean merge), go build ./..., go vet ./io/... and go test ./io/gocloud/... pass; CI is 15/15.
9 of 23 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The io/gocloud package kept aliases and wrappers that redirected to the per-cloud subpackages after the split in #1874 and #1961: BlobFileIO, KeyExtractor, ErrEmptyObjectKey and ErrUnsupportedObjectAuthority now live in io/gocloud/blobfs, ParseAWSConfig in io/gocloud/s3, and ParseGCSConfig in io/gocloud/gcs. Import those packages directly instead.
io/gocloud itself still registers every gocloud-backed FileIO, and its registration test is kept. This is a breaking change for callers still using the shims.
Part of the v1.0 API cleanup in #2062.