-
Notifications
You must be signed in to change notification settings - Fork 816
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
blob/azblob: Migrate to new SDK module #3141
Comments
I've been trying to upgrade to the new SDK for |
And yes, it will be a breaking change. Sadly there is no way to avoid that when the underlying provider makes breaking changes :-(. |
I think the good news is that Go 1.19 is already in beta so that should be okay when it GAs? I wonder whether it's worth getting the upgrade started in the master branch and not cut a release until 1.19.
I'm curious whether Go Cloud should tag a non-major version and mention this change in the release notes or if it would warrant a major version upgrade on gocloud. I'd be happy either way. Also, thank you for staying on top of those changes! |
Yes, looks like 1.19 should be out in August. I usually just note breaking changes in the release notes. |
#3156 if you have any feedback. |
@xaxa06 FYI previous contributors to this package. I'm planning to update it in a non-backwards-compatible way soon, to update to the new Azure Blob Storage SDK. Sadly given the underlying backwards-incompatible change, I don't think there's a way to avoid it. (I could add a second copy of the package, e.g., The proposed change is in #3156. Obviously the underlying Azure clients etc. have changed, so the Other feedback is also welcome. |
Thanks for the heads up and for that migration/upgrade that looks promising! I will try to test it on my end in the coming days when time permits and let you know how this goes. For the practicality of what's the best way to proceed to upgrade our gocloud to your branch from an existing project while this is still at pull request stage, would you have any particular advice? (I was reading at https://go.dev/ref/mod#pseudo-versions but haven't found any way so far to just "go get" the existing deps from a commit hash which isn't yet merged, so I'm suspecting there's probably a better way...) |
@xaxa06 I'm waiting for feedback, but if I don't hear anything I'm likely going to submit it relatively soon, so it's probably easiest to just wait for that. |
hi i no longer work at github, @marwan-at-work do you know if the packages team needs to do anything here? |
Fixed by #3156. |
This upgrade will require Go 1.18+: google/go-cloud#3141. Per https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azblob#readme, the new Azure SDK is now `github.com/Azure/azure-sdk-for-go/sdk/storage/azblob`. The migration in google/go-cloud#3156 also had a number of breaking API changes. This commit has been validated to work with Azure Blob Storage.
Is your feature request related to a problem? Please describe.
According to the README, the Azure Blob Storage SDK has moved to a new place here.
Describe the solution you'd like
It would be great if go-cloud migrated to the new SDK so that it's up to date.
The only thing that might be worth considering is that it's a bit of a breaking change for people who use
bucket.As
and pass in the old library's types.The text was updated successfully, but these errors were encountered: