actions / runner-images

GitHub Actions runner images
MIT License
10.26k stars 3.08k forks source link

Disable `rustup` self-updating #10970

Open madsmtm opened 2 weeks ago

madsmtm commented 2 weeks ago

Description

rustup has a mechanism for self-updating, which triggers whenever you request it to install a new toolchain. This is annoying to have happen in CI though, since it increases build time for no benefit (both the check itself, and the eventual update if rustup deems it necessary).

So let's disable this!

Since this is a behavioural change, it could be considered a breaking change, though I will argue that it isn't, people shouldn't need to update rustup itself during a build (rustup update to fetch a newer rustc/cargo still works fine).

Related issue:

https://github.com/actions/runner-images/issues/246, the proposed workaround in there (--no-self-update) wouldn't be necessary any more.

Check list