-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
x.py fails (timeout) to download components #61611
Comments
I got x.py to test libcore once, but after I updated my local clone of rust, I started getting this repeatedly:
|
I am nuking my entire rust clone in case changes to the bootstrap are incompatible to previous artifacts produced by previous versions. Why does x.py need to download submodules like |
Nope, I am still getting the DownloadFile exception after refreshing everything, including updating MSYS2 to get curl to 7.65.1, trying the MSYS2 that comes along with git, and messing with bootstrap.py |
@AaronKutch your issue is different and there is no |
Thank you, it works now |
@Mark-Simulacrum original issue (from comment 0) is not resolved. |
We should probably fallback to trying curl if the powershell invocation fails. Reopening. I think a PR would work best here. |
For some reason, the powershell download is working again on both my MSYS2 install and from git bash. We still want that fallback though. I couldn't PR a fix though, because I don't know how the exception handling is working in that Python script. |
Actually, since I should learn Python anyway, should I PR a fix? Is it as simple as detecting an exception occurred and refactoring the if-else statement in a way that it would also run |
That's what I would suggest -- we can make it pretty simple and if anything goes wrong with the powershell call then fallback to curl |
It might also make sense to try curl before using powershell, as suggested by @ChrisDenton in #95170 (comment). @rustbot label: +E-easy |
I just cloned this rust repo and attemped to build it by calling
It initialized submodules, started downloading
rust-std
and failed repeatedly:Waiting longer causes messages above to repeat.
It's not connection issue, because it always fails after ~30 seconds of downloading (Messages above repeat in ~2 minutes).
I also tried changing
30
to9999
here:rust/src/bootstrap/bootstrap.py
Line 82 in c5295ac
What caused download to succeed in a few (1-2) minutes.
So I assume it's
curl
to blame.curl
version:The text was updated successfully, but these errors were encountered: