-
Notifications
You must be signed in to change notification settings - Fork 62
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
Compatibility Issue with sigs.k8s.io/structured-merge-diff/v4 Upgrade #267
Comments
Hi @animesh-sri-98 , the version of structured-merge-diff repo in k/k has been bumped to the latest version v4.4.2 through kubernetes/kubernetes#128416. Have you fetched and rebased on the latest change? |
And the PR mentioned above contained the apimachinery updates to accommodate the latest changes in sturctured-merge-diff |
@cici37 I executed All of these are being resolved to v4.4.1 instead of v4.4.2. This is probably due to a dependency conflict as k8s.io/kube-openapi references sigs.k8s.io/structured-merge-diff/v4@v4.4.1 in its go.mod file, while k8s.io/client-go and k8s.io/apimachinery mention v4.4.2 in go.mod. Could you suggest something here? I have also raised an issue in the kubernetes/kube-openapi repo to test it with v4.4.2 and update the go.mod file. |
In which repo are you running against where this issue appears? In the screenshot you shared, all the k8s.io dependency you imported are at 0.31.2 which should all depend on structured-merge-diff@v4.4.1 as expected. |
I've merged kubernetes/kube-openapi#516 to kube-openapi to update the version. I'll do the same for the main Kubernetes repo. This way all the versions in the dep tree will be the same for the Kubernetes 1.32 release |
I've opened kubernetes/kubernetes#128580 to bump the kubernetes version. |
Fixed by kubernetes/kube-openapi#516 and kubernetes/kubernetes#128580, both of which have merged. |
When I run go get -u, followed by go mod tidy and go mod vendor, I encounter a compatibility issue that breaks my build due to an unexpected field in merge.Updater. Specifically, this occurs after go get -u upgrades sigs.k8s.io/structured-merge-diff/v4 from version v4.4.1 to v4.4.2. Here’s the error message:
Here is my go.mod file, showing key dependencies:
It seems the new version (v4.4.2) introduces a change that k8s.io/apimachinery doesn’t yet accommodate. Is there a recommended workaround for this issue, or an update to k8s.io/apimachinery planned to support this new version? Can someone please help?
@jpbetz @apelisse @AnishShah @Jefftree @yliaog @cici37
The text was updated successfully, but these errors were encountered: