-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to add component on Windows #4232
Comments
@djc humbly nominating this for 1.28.2. |
Added it to the list! No guarantee about making it in, of course... |
I'm struggling to repo this locally on 1.28.1. Might be something about CI that I'm not replicating? The full CI script seems to be: rustup update --no-self-update nightly
rustup default nightly
rustup component add --toolchain nightly rust-src
# We always use a nightly rustfmt, regardless of channel, because we need
# --file-lines.
rustup toolchain add nightly --profile minimal
rustup component add --toolchain nightly rustfmt And the output in CI is:
Notable is the "info: downloading self-update" (and the warnings). Might be something to do with the self update in CI? I'll need to investigate more. |
Quick test is CI was unable to reproduce this: https://github.com/ChrisDenton/rustuptest/actions/runs/13689198328/job/38279145390 Might have been fixed by 1.28.1 though so when I have mo I'll see if I can repo locally with 1.28.0. |
Still fails in rust-lang/rust-analyzer#19301. One difference might be the fact that the GHA runners already have an older rustup and Rust toolchain installed. |
Ok I can reproduce it in CI but it doesn't fail 100% of the time. If I run it five times then it seems to fail at least once: jobs:
rust:
name: Rust
runs-on: ${{ matrix.os }}
env:
CI: 'true'
strategy:
matrix:
os: [windows-latest, windows-latest, windows-latest, windows-latest, windows-latest]
steps:
- name: Install Rust toolchain
run: |
rustup toolchain add nightly --profile minimal
rustup component add --toolchain nightly rustfmt Weirdly I need to set the If I add My best guess for why this happens on Windows is some kind of filesystem-based concurrency issue. |
@ChrisDenton Would that be related to some sort of fslinking change? @lnicola We do know that GitHub Actions installs rustup a bit differently from you'd usually do. That's why we have disabled automatic rustup updates when |
Just pausing for a second before doing |
Hmmm, in that case it looks increasingly like #988... |
In any case I'm pretty sure that without the self-update CI wouldn't fail (even if CI was using 1.28.1). So I'd urge people to do this before anything else:
This won't be necessary for 1.28+ but for 1.27.1 it is. |
Originally posted by @lnicola in #4220
The text was updated successfully, but these errors were encountered: