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
Simplify go.mod #113424
Simplify go.mod #113424
Conversation
36f0e77
to
30701b9
Compare
I like it! good direction @liggitt. thanks! |
30701b9
to
1cb0a1c
Compare
rebased, fixed lint error with unused method it looks like check-dependency-stats has the same issue with the expanded graph, will dig into that |
1cb0a1c
to
93f9ced
Compare
93f9ced
to
6076987
Compare
depstat fix in kubernetes-sigs/depstat#65 |
This was originally added in the early days of go.mod in order to ensure that the root k8s.io/kubernetes go.mod file reflected all the versions of dependencies we were using, and to ensure that go commands didn't spuriously increment these versions. With module pruning in go1.17+ and go defaulting to mod=readonly mode in go1.16+, this is no longer necessary.
6076987
to
f488c67
Compare
/retest |
/test check-dependency-stats |
/triage accepted |
/approve Thanks @liggitt |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Stops adding explicit
replace
directives for all dependencies. This was needed in the early days of go.mod to ensure we had a consistent root view of the required dependency versions and to keep spurious changes from happening to go.mod, but both of those issues have been resolved since go1.17.A nice side effect is that dependency updates should no longer require several pin/update-vendor/lint cycles.
This also fixes up the unwanted-dependencies scanner to work with the expanded
go mod graph
output that results from dropping the forced pins to specific versions.Requires depstat fix in kubernetes-sigs/depstat#65 before CI will pass on this PR
/cc @dims
/area code-organization