rust-toolchain icon indicating copy to clipboard operation
rust-toolchain copied to clipboard

Run rustup toolchain install stable fails with status 127

Open Bykow opened this issue 2 years ago • 1 comments

Reopen of https://github.com/dtolnay/rust-toolchain/issues/89

I'm facing a similar issue. Running a self hosted github runner (from a win11-dev machine that I have control of). The runner supports $GITHUB_PATH.

I don't understand why this line is present https://github.com/dtolnay/rust-toolchain/blob/master/action.yml#L68

Why not install rustup on windows ?

Bykow avatar Mar 26 '24 10:03 Bykow

Hello @Bykow

For windows the script's url is https://win.rustup.rs/

The runner on the line you sent retrieves from https://sh.rustup.rs/ which is for unix

placintaalexandru avatar Apr 16 '24 20:04 placintaalexandru

I would recommend adding your own step in your workflow to install rustup on your self-hosted Windows runner.

Once you have Windows rustup installation commands that have been working reliably for a while, feel free to send a PR.

dtolnay avatar Jul 27 '24 17:07 dtolnay