Skip to content

refactor(io/gocloud)!: remove deprecated compatibility shims - #2178

Merged
zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:refactor/remove-gocloud-compat-shims
Oct 13, 2026
Merged

zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:refactor/remove-gocloud-compat-shims

Conversation

@laskoviymishka

Copy link
Copy Markdown
Contributor

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.

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
laskoviymishka marked this pull request as ready for review October 11, 2026 11:16

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@zeroshade
zeroshade merged commit 43e5b07 into apache:main Oct 13, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants