You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #149417 - clubby789:stale-workspace-list, r=Mark-Simulacrum
tidy: Detect outdated workspaces in workspace list
Detects the case in #149415 (will pass CI once that lands).
// Check for packages which have been moved into a different workspace and not updated
654
+
let absolute_root =
655
+
if path == "."{ root.to_path_buf()}else{t!(std::path::absolute(root.join(path)))};
656
+
let absolute_root_real = t!(std::path::absolute(&metadata.workspace_root));
657
+
if absolute_root_real != absolute_root {
658
+
check.error(format!("{path} is part of another workspace ({} != {}), remove from `WORKSPACES` ({WORKSPACE_LOCATION})", absolute_root.display(), absolute_root_real.display()));
0 commit comments