-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Add src/tools/x
to the main workspace
#138179
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
BTW, I think we could also do this for
There's no meaningful change in the tool itself. |
Isn't cargo still a submodule, or does that not matter? |
It is, but it doesn't matter because it's in an independent workspace. |
This comment has been minimized.
This comment has been minimized.
Why on earth are the settings hashed into a test?!? |
because knowing when the settings change allows us to suggest re-running |
☔ The latest upstream changes (presumably #138448) made this pull request unmergeable. Please resolve the merge conflicts. |
The original reason to exclude it was so it could run before submodules were initialized. However, those have all been converted to subtrees now, so the entire workspace is always ready to go.
The conflict was just the removal of |
I'll test this on a fresh clone w/ no submodules initialized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes themselves look good. Should we add a EDIT: nvm, the hash differences will let people know, duh.WARN
-level change tracker entry, because people would need to adjust their r-a settings, right?
For the changes themselves, I did some local testing: Local testingI performed a clone of this repo with explicitly cleared git configs (that should not recursively checkout submodules by default). $ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' git clone https://github.com/rust-lang/rust.git rust-138179
$ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' git fetch origin pull/138179/head:pr-138179
$ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' git checkout pr-138179 With no bootstrap $ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' ./x build library --stage=1 I can confirm I also redid the fresh clone then tried to run tidy: $ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' ./x test tidy I confirm that I can run tidy checks locally without any submodules being checkout out prior to this invocation, and that tidy completes successfully. After redoing the clone and an explicit $ GIT_CONFIG_SYSTEM='' GIT_CONFIG_GLOBAL='' git submodule deinit -f --all I tried a basic dist flow
And while I didn't bother waiting it to finish, it got past the stage that would've failed if |
Thanks for the cleanup! |
Rollup of 16 pull requests Successful merges: - rust-lang#136001 (Overhaul examples for PermissionsExt) - rust-lang#136230 (Reword incorrect documentation about SocketAddr having varying layout) - rust-lang#136892 (Sync Fuchsia target spec with clang Fuchsia driver) - rust-lang#136911 (Add documentation URL to selected jobs) - rust-lang#137870 ( Improve HashMap docs for const and static initializers) - rust-lang#138179 (Add `src/tools/x` to the main workspace) - rust-lang#138389 (use `expect` instead of `allow`) - rust-lang#138396 (Enable metrics and verbose tests in PR CI) - rust-lang#138398 (atomic intrinsics: clarify which types are supported and (if applicable) what happens with provenance) - rust-lang#138432 (fix: remove the check of lld not supporting `@response-file)` - rust-lang#138434 (Visit `PatField` when collecting lint levels) - rust-lang#138441 (update error message) - rust-lang#138442 (EUV: fix place of deref pattern's interior's scrutinee) - rust-lang#138457 (Remove usage of legacy scheme paths on RedoxOS) - rust-lang#138461 (Remove an outdated line from a test comment) - rust-lang#138466 (Remove myself from libs review) Failed merges: - rust-lang#138452 (Remove `RUN_CHECK_WITH_PARALLEL_QUERIES`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#138179 - cuviper:x, r=jieyouxu Add `src/tools/x` to the main workspace The original reason to exclude it was so it could run before submodules were initialized. However, those have all been converted to subtrees now, so the entire workspace is always ready to go. I've also alphabetized the workspace members, as it was an untidy mess. 🧹
Rollup of 16 pull requests Successful merges: - rust-lang#136001 (Overhaul examples for PermissionsExt) - rust-lang#136230 (Reword incorrect documentation about SocketAddr having varying layout) - rust-lang#136892 (Sync Fuchsia target spec with clang Fuchsia driver) - rust-lang#136911 (Add documentation URL to selected jobs) - rust-lang#137870 ( Improve HashMap docs for const and static initializers) - rust-lang#138179 (Add `src/tools/x` to the main workspace) - rust-lang#138389 (use `expect` instead of `allow`) - rust-lang#138396 (Enable metrics and verbose tests in PR CI) - rust-lang#138398 (atomic intrinsics: clarify which types are supported and (if applicable) what happens with provenance) - rust-lang#138432 (fix: remove the check of lld not supporting `@response-file)` - rust-lang#138434 (Visit `PatField` when collecting lint levels) - rust-lang#138441 (update error message) - rust-lang#138442 (EUV: fix place of deref pattern's interior's scrutinee) - rust-lang#138457 (Remove usage of legacy scheme paths on RedoxOS) - rust-lang#138461 (Remove an outdated line from a test comment) - rust-lang#138466 (Remove myself from libs review) Failed merges: - rust-lang#138452 (Remove `RUN_CHECK_WITH_PARALLEL_QUERIES`) r? `@ghost` `@rustbot` modify labels: rollup
The original reason to exclude it was so it could run before submodules
were initialized. However, those have all been converted to subtrees
now, so the entire workspace is always ready to go.
I've also alphabetized the workspace members, as it was an untidy mess. 🧹