Commit 4b34541
committed
[ci] Refresh the apt lists only when an install fails.
The Linux dependency step installs against the runner image's package
lists, which are baked in when the image is built. Once the archive
supersedes a package and drops the old .deb, the resolve 404s and the
row dies before it builds anything: valgrind depends on libc6-dbg, whose
2.39-0ubuntu8.7 build stopped being fetchable, and the vg row went red.
Running `apt-get update` at the top of the step would fix it by making
every Linux row on every run pay for a refresh that matters a few times
a year. Install against the image's lists first and refresh only if that
fails, which is the shape the clang install below already uses. Both
installs in the step go through one helper, so the best-effort libomp
one is covered too, and apt-get in place of apt drops the "apt does not
have a stable CLI interface" warning each row printed.1 parent d0e1e2d commit 4b34541
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
214 | 225 | | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
218 | | - | |
| 229 | + | |
219 | 230 | | |
220 | 231 | | |
221 | 232 | | |
| |||
0 commit comments