-
Notifications
You must be signed in to change notification settings - Fork 331
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
Third party libraries are not latest version #2759
Comments
Good timing to see #2758, it looks like manual operation for bump is necessary. Is it better to add gihub action to bump the deps? |
We should setup dependabot for this repo and exclude knative and k8s deps from being bumped (since we have other automation or do it manually) |
It seems that adding dependabot will work well 🎉
Maybe we should add it to net-kourier or a few repos first then add it to the bot as in common knobot - https://github.com/knative-sandbox/knobots (after 1.11 cut and agreemet with the TOC or leads.) |
Regarding dependabot see prior art and thoughts: #1942 |
Ah, thank you! |
The following command line bumps all thrid-party libs except for k8s.io and knative.dev. source vendor/knative.dev/hack/library.sh
for domain in `ls vendor --ignore={k8s.io,knative.dev}` ; do
echo "Bump $domain"
go_update_deps --upgrade --domain ${domain}
done Although we can add it to common update deps (maybe adding it to https://github.com/knative-sandbox/knobots/blob/main/actions/update-deps/entrypoint.sh ) but some repos wants to exclude some specific libs - e.g. Istio does wants to keep |
Above command does not work perfectly... (I think buoy's issue, though...) For example github.com/blang/semver/v4, which does not have go.mod in top directory https://github.com/blang/semver/tree/master/v4 fails with
EDIT: Fixed by knative/toolbox#13 |
Also, I think instead of |
Just as an addition, we also should look into bumping k8s dependencies if possible. We have some got some feedback that this also causes issues for tekton:
|
This comes with a challenge, which is `k8s.io` dependencies, and thus `replace` is coming back in the picture (sadly). This will have to be fixed once `knative/pkg` k8s.io dependencies are up-to-date or at least *compatible* with the rest of the library we use (`go-containerregistry` is the example today). This is tracked in knative/pkg here : knative/pkg#2759. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This comes with a challenge, which is `k8s.io` dependencies, and thus `replace` is coming back in the picture (sadly). This will have to be fixed once `knative/pkg` k8s.io dependencies are up-to-date or at least *compatible* with the rest of the library we use (`go-containerregistry` is the example today). This is tracked in knative/pkg here : knative/pkg#2759. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This comes with a challenge, which is `k8s.io` dependencies, and thus `replace` is coming back in the picture (sadly). This will have to be fixed once `knative/pkg` k8s.io dependencies are up-to-date or at least *compatible* with the rest of the library we use (`go-containerregistry` is the example today). This is tracked in knative/pkg here : knative/pkg#2759. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This comes with a challenge, which is `k8s.io` dependencies, and thus `replace` is coming back in the picture (sadly). This will have to be fixed once `knative/pkg` k8s.io dependencies are up-to-date or at least *compatible* with the rest of the library we use (`go-containerregistry` is the example today). This is tracked in knative/pkg here : knative/pkg#2759. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
in addition to dependabot you will need a github action to run https://github.com/orgs/community/discussions/48498#discussioncomment-5159337 |
I opened knative-extensions/net-gateway-api#498. Could anyone take a look? |
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
We also had to a replace due to knative/pkg#2759
/area test-and-release
/kind question
/kind bug
/kind cleanup
Expected Behavior
go.mod
except for k8s libs should be the latest versions (if no reason to stay the old version).Actual Behavior
go.mod
are not updated.Additional Info
hack/update-deps.sh
.The text was updated successfully, but these errors were encountered: