-
Notifications
You must be signed in to change notification settings - Fork 2.6k
chore: update azure go-autorest dependencies #3138
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
Conversation
8e13b78
to
da6e039
Compare
ping @dmcgowan |
@cpuguy83 this change really doesn't make much sense to me, I have no idea what go mod is doing here. If I understand it correctly, |
I tried to explain this in the issue, but I don't think I did a very good job. I'll try once more. If a call is needed, I'm happy to discuss with anyone that is interested. Let's looks at the error from the issue:
Basically, golang found what it thinks is the same module in two places, the earlier incompatible go-autorest and more recent, modularized go-autorest/autorest module. This error occurs when someone takes a dependency on the pre golang module go-autorest, the core dependency of all Azure Golang SDKs, and a project that depends on the modularized go-autorest. This happens because the pre golang module package contains the import path defined in go-autorest/autorest, and many of the other import paths which have since been broken out into their own modules. You can see a list of the modules here. Most of these import paths defined in these modules will overlap with the pre modular go-autorest. The error above is from an example project that takes a dependency on this project and cluster-api-provider-azure. This project depends on the pre golang module version of go-autorest, and cluster-api-provider-azure uses the modularized version. One can easily repro this behavior by creating a new golang mod based project and import these two projects. The way to "fix" the situation is to update the outdated go-autorest dependency in this project. Again, happy to help get this resolved. Cheers! |
Giving this a bump as I ran into the same problem and would like to avoid adding a |
Bump - also just ran into this issue |
You need to rebase @devigned |
@milosgajdos this has been open for a long time. If I rebase the changes, will this be able to pulled in? |
@devigned can't promise any swift action -- I saw a new issue update and noticed this PR has a conflict, so if it does come to review it'd have to be conflict free |
Right on. I'll rebase it and hopefully, we can get it pulled in. |
da6e039
to
4290a68
Compare
@milosgajdos I've updated the deps to the latest versions, vendored, and tidied up. I think this should be ready for review and verification. If there are questions about why this is needed, I'm happy to answer questions. I've tried to sum it up above, but totally get that go mods can be a bit confusing in edge cases like what's going on here. |
Codecov Report
@@ Coverage Diff @@
## main #3138 +/- ##
==========================================
- Coverage 56.38% 56.33% -0.06%
==========================================
Files 102 101 -1
Lines 7324 7280 -44
==========================================
- Hits 4130 4101 -29
+ Misses 2541 2527 -14
+ Partials 653 652 -1
Continue to review full report at Codecov.
|
Anything blocking this? |
@milosgajdos or @wy65701436 is there anyway this could get a review and just maybe get pulled in? |
4290a68
to
819b122
Compare
Signed-off-by: David Justice <david@devigned.com>
819b122
to
3e68d47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thank you so much for getting these changes merged! |
This updates the go-autorest related dependencies to a recent version which will fix the ambiguous module error.
fixes #3137