Fail to install rustup on arm since a week

Until two weeks ago, curl https://sh.rustup.rs -sSf | sh -s -- -y; fi worked on an arm CI, but now fails:

info: `RUSTUP_VERSION` has been set to `stable`
info: downloading installer
warn: curl: (22) The requested URL returned error: 404 
error: command failed: downloader https://static.rust-lang.org/rustup/archive/stable/aarch64-unknown-linux-gnu/rustup-init /tmp/tmp.HxXO1WGhPN/rustup-init aarch64-unknown-linux-gnu

Exited with code exit status 1

The CI: https://app.circleci.com/pipelines/github/tdelmas/typed_floats?branch=dependabot%2Fcargo%2Ftoml-0.8.22

It seems that something is setting RUSTUP_VERSION to "stable". RUSTUP_VERSION must either be unset or set to a specific version name.

3 Likes

It was a misuse of RUSTUP_VERSION. When it's unset, it effectively works as expected.

So the problem is now fixed in my CI, thank you!

But there are still two mysteries unsolved:

  • Why it broke only last week?
  • Why only the arm executor of CircleCI was affected, not the docker one?

(the relevant CI file: typed_floats/.circleci/config.yml at main · tdelmas/typed_floats · GitHub)

Is it possible that it actually broke May 5th? That is when a new rustup version got released: Announcing rustup 1.28.2 | Rust Blog I guess the stable directory got deleted in the process.

Maybe with the docker executor rustup-init doesn't get executed with RUSTUP_VERSION for whatever reason? Just guessing.

1 Like

Around that date yes, completely.

No, both set that var to stable (or 1.70), as I used it to set the rust version that I wanted.