Add apt-get update step into the clang-tidy job #79344
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
Clang-tidy runners are spuriously failing https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/12967965940/job/36170475239?pr=79311
Describe the solution
The error message says
So I thought I should maybe do that...
Describe alternatives you've considered
Unclear.
I'm not exactly sure what's the root of the problem because sometimes apt-get install works totally fine. E.g. https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/12967965940/job/36170475187?pr=79311 which is part of the exact same matrix as the failing one in https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/12967965940/job/36170475239?pr=79311
(I'm also a bit surprised that github actions don't come with
apt-get update
pre-run - doing so would save them a small amount of CPU cycles, but guess there're other complications with that)Testing
Seems to be working in my fork https://github.com/moxian/Cataclysm-DDA/actions/runs/12970195966?pr=16
But, again, I'm not 100% sure this fixes the issue for good, or if i was just lucky here
Additional context