-
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
src/tools/x
doesn't work on old checkouts of the compiler
#107907
Comments
@rustbot claim |
@albertlarsan68 i could help! Could you give me some pointers on what needs to be done? |
What you should do is re-add the code that was removed in #105844, using it when the shell scripts are not found, but x.py is. |
I see! Okay I'll give this a shot! But I may need more time than just the weekends cause I probably need some time to figure things out. But if it's urgent then feel free to unassign me😅 |
I don't think this is necessary, there shouldn't be any functionality that's available in python but not shell. |
It is future-proofing for when python does get used only when building bootstrap, and the shell scripts won't be able to call python |
That can be done with a function argument so it's not exposed to users. |
Yes, it can work like this. |
Hi @jyn514 ! Currently working on this. Could you list out the steps needed to replicate this issue so I could get a bit more context of the problem? Thank you! |
@zephaniahong install it from a current version of the repository, then check out any commit from before c16b969 and run |
Err sorry, that was the commit that changes src/tools/x - you want the commit that initially added the ./x and x.ps1 scripts. |
One reason may be because they work on a pr that started before this commit, and that (miraculously) didn't conflict. Another reason would have been because the work was done on stable/beta, but I think the scripts are now on stable (correct me if I'm wrong) |
Since #105844, src/tools/x unconditionally looks for the shell scripts when running. That's good in most cases because it avoids having to run python. However, on old checkouts the shell scripts don't exist and it needs to fall back to using python.
cc @albertlarsan68, do you have time to fix this?
The text was updated successfully, but these errors were encountered: