-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
tidy: Detect outdated workspaces in workspace list #149417
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
base: main
Are you sure you want to change the base?
Conversation
|
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
|
rustbot has assigned @Mark-Simulacrum. Use |
This comment has been minimized.
This comment has been minimized.
7e4f2b3 to
c906b2a
Compare
This comment has been minimized.
This comment has been minimized.
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.
r=me presuming that check exists or we have an issue tracking adding it (or there's a good reason to not add it)
src/tools/tidy/src/deps.rs
Outdated
| if path == "." { root.to_path_buf() } else { t!(root.join(path).canonicalize()) }; | ||
| let canonicalized_root_real = t!(metadata.workspace_root.canonicalize()); | ||
| if canonicalized_root_real != canonicalized_root { | ||
| check.error(format!("{path} is part of another workspace, remove from `WORKSPACES` ({WORKSPACE_LOCATION})")); |
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.
We do have a check somewhere that we're covering all workspaces, right? Or is that missing?
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.
There is no such check. And in fact we don't cover all workspaces. There are a bunch of workspaces that are neither used by x.py nor vendored. All workspaces that aren't vendored can't be linted by tidy without breaking offline builds.
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.
Ack. Yeah, I guess that makes sense. Might be good to try to find a way to at least check those used by x.py, but not sure how we'd actually accomplish that in a useful way.
|
@bors r+ |
…Mark-Simulacrum tidy: Detect outdated workspaces in workspace list Detects the case in rust-lang#149415 (will pass CI once that lands).
…Mark-Simulacrum tidy: Detect outdated workspaces in workspace list Detects the case in rust-lang#149415 (will pass CI once that lands).
Rollup of 12 pull requests Successful merges: - #147602 (Deduplicate higher-ranked lifetime capture errors in impl Trait) - #147725 (Remove -Zoom=panic) - #148294 (callconv: fix mips64 aggregate argument passing for C FFI) - #148491 ( Correctly provide suggestions when encountering `async fn` with a `dyn Trait` return type) - #149417 (tidy: Detect outdated workspaces in workspace list) - #149458 (Run clippy on cg_gcc in CI) - #149679 (Restrict spe_acc to PowerPC SPE targets) - #149781 (Don't suggest wrapping attr in unsafe if it may come from proc macro) - #149795 (Use `let`...`else` instead of `match foo { ... _ => return };` and `if let ... else return` in std) - #149816 (Make typo in field and name suggestions verbose) - #149824 (Add a regression test for issue 145748) - #149826 (compiletest: tidy up `adb_path`/`adb_test_dir` handling) r? `@ghost` `@rustbot` modify labels: rollup
|
@bors r- |
c906b2a to
8143abc
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors try jobs=x86_64-msvc-2 |
tidy: Detect outdated workspaces in workspace list try-job: x86_64-msvc-2
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
💔 Test for a1d5de2 failed: CI. Failed jobs:
|
8143abc to
1d7d030
Compare
|
@bors try jobs=x86_64-msvc-2 |
This comment has been minimized.
This comment has been minimized.
tidy: Detect outdated workspaces in workspace list try-job: x86_64-msvc-2
|
Hmm, |
This comment has been minimized.
This comment has been minimized.
|
💔 Test for 486433f failed: CI. Failed jobs:
|
1d7d030 to
4e51a8d
Compare
|
@bors try jobs=x86_64-msvc-2 |
This comment has been minimized.
This comment has been minimized.
tidy: Detect outdated workspaces in workspace list try-job: x86_64-msvc-2
|
@rustbot ready |
Detects the case in #149415 (will pass CI once that lands).