My project's rustfmt Travis check on GitHub has recently stopped working due to an error from rustup +nightly component add rustfmt:
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2020-07-15, rust version 1.46.0-nightly (23744c84d 2020-07-14)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'rust-std'
info: installing component 'rustc'
error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly
Sometimes not all components are available in any given nightly.
Anyone know what the best way is to get nightly rustfmt features? Thanks in advance!
When you install nightly via rustup you can add --component complete to have it install everything, and it will find an older nightly that has everything.
I don't think there's a more precise option to make it require only rustfmt.
Thanks! And yes, we are failing the builds. We don't have a lot of people clamoring to contribute as is, but we will reevaluate failing the build on rustfmt if someone (anyone) tries to contribute.
Ideally, there would be a bot that would comment on the PR saying "this isn't rustfmted, want me to commit a formatting fix?" with an @ command to fix it. I don't know of such a bot though.