-
Notifications
You must be signed in to change notification settings - Fork 45
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
ci: check for tidied go.mod #530
Conversation
I am against enforcing this, this will lead to git conflict that will either have to be retried with renovate or resolved manually. I prefer to be able to merge multiple dependency upgrade and tidy every once in a while. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #530 +/- ##
=======================================
Coverage 67.87% 67.87%
=======================================
Files 47 47
Lines 4912 4912
=======================================
Hits 3334 3334
Misses 1170 1170
Partials 408 408 ☔ View full report in Codecov by Sentry. |
No, this will prevent conflicts, because the go.sum will be strictly dependent on the go.mod if you run
Once a dependency is merged, renovate will rebase and re-run |
That's one of my points, I don't want to wait for Renovate. |
I am also against this, but for another reason. If we always run This feels unnecessary if we do not rely on any new features of a lib (at which point go should automatically detect that it does not work and remove the old version from |
Old library versions are kept in the go.sum file if you don't
|
I think the workflow in itself is also something we are against. Having this extra possibility of failing CI is annoying. A solution in between could be to run a go mod tidy task every week and commit this. But I think a manual tidy can be done occasionally, when it needed.
I don't think we gain much by cleaning this every time, while I see a lose having to comply to the CI check every time. |
The only possibility for the CI run to fail would be if you add, remove or upgrade dependencies, in which case you would want to run |
As discussed with @phm07, he is taking over the maintenance of the dependencies. Since I'll not be the one merging the updates, I don't see any blocker for merging this. |
5b7ea05
to
408c1c6
Compare
This PR adds a CI check for
go mod tidy
as we already do in the CLI.