-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Do not use git -C dir
#146654
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
Do not use git -C dir
#146654
Conversation
Older versions of git (≤ 1.8.5) do not support the `-C dir` global option. Use the `cwd` optional argument when using Python's `subprocess` functionality instead.
(disclaimer: fix is untested, as right now I can't seem to build bootstrap on NixOS) |
Since this is where the problem was noticed, let's test @bors try jobs=dist-x86_64-linux |
This comment has been minimized.
This comment has been minimized.
Do not use `git -C dir` try-job: dist-x86_64-linux
Oh, it looks like this would hog the problematic runner, let's not do this @bors try cancel |
Try build cancelled. Cancelled workflows: |
What do you mean by "hog"? We should definitely do the try job to see if it worked or not :) |
@bors try |
This comment has been minimized.
This comment has been minimized.
Since it was waiting for a runner when I checked the job that just started, and an old CentOS was used, I was afraid a real dedicated machine was used, and could run only one job at a time. |
Ah, I see :) No, don't worry, we can run many try jobs in parallel. |
Looks good, and this is a better solution overall anyway. Thank you! @bors r+ rollup |
Rollup of 7 pull requests Successful merges: - #146458 (Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation) - #146485 (Remove unsized arg handling in `ArgAbiBuilderMethods::store_fn_arg` implementations) - #146536 (clean up several trait related UI tests) - #146598 (Make llvm_enzyme a regular cargo feature) - #146647 (Move `#[rustc_coherence_is_core]` to the `crate_level` file) - #146654 (Do not use `git -C dir`) - #146681 (Add space after brace in `Box<[T]>::new_uninit_slice` example) r? `@ghost` `@rustbot` modify labels: rollup
Older versions of git (≤ 1.8.5) do not support the
-C dir
global option. Use thecwd
optional argument when using Python'ssubprocess
functionality instead.Fix #142534