-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Don't clone submodules for tools that aren't being built #76653
Copy link
Copy link
Closed
Labels
A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustArea: Makes things more difficult for new or seasoned contributors to RustC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Metadata
Metadata
Assignees
Labels
A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustArea: Makes things more difficult for new or seasoned contributors to RustC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Right now, this is the first thing you see on a fresh clone:
This can go on for many minutes, especially on a slow connection. Instead,
x.pyshould only clone the submodules when they're actually needed.I think
cargo buildrequires having theCargo.tomlof the submodules to work, which might be tricky ... maybex.pycould default to a shallow clone? The main thing I'd love to have is forx.py checkto not have to download LLVM.Thanks to @Lokathor and @thomcc for encouraging me to throw away my clone and start from scratch ;)