-
Notifications
You must be signed in to change notification settings - Fork 430
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
remove unnecassary caching of of golangci-lint #5166
Conversation
golangci-lint step auto caches the binary. Explicit caching step is not needed anymore. Refer to https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#internals Of course, we could cache a specific version of golangci-lint instead of go.mod hash. But effort to create that logic outweighs its impact. However, golangci-lint.cache-{runner_os}-{working_directory}-{interval_number}-{go.mod_hash} has its advantages; it updates itself with go.mod changes. We delete older caches using auto delete cache workflow.
6e0b48a
to
b591374
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5166 +/- ##
=======================================
Coverage 51.35% 51.35%
=======================================
Files 273 273
Lines 24671 24671
=======================================
Hits 12670 12670
Misses 11212 11212
Partials 789 789 ☔ View full report in Codecov by Sentry. |
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
/approve
LGTM label has been added. Git tree hash: 1ccff33e5d306e78cbe4975d58a9901cf016d982
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nojnhuh 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:
golangci-lint step auto caches the binary. Explicit caching step is not needed anymore. Refer to https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#internals
Of course, we could cache a specific version of golangci-lint instead of go.mod hash. But effort to create that logic
outweighs its impact. However, golangci-lint.cache-{runner_os}-{working_directory}-{interval_number}-{go.mod_hash} has its advantages; it updates itself with go.mod changes.
We delete older caches using auto delete cache workflow. [WIP] Remove GitHub-actions caches every Tuesday midnight. #5165
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
TODOs:
Release note: