diff --git a/src/workspace.rs b/src/workspace.rs index 27fa05d3..5a6abe60 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -62,10 +62,8 @@ impl PackageFilter { if let PackageFilter::Auto(dir) = &self { let package_dir = locate_project(dir, false)?; let workspace_dir = &metadata.workspace_root; - ensure!( - package_dir.strip_prefix(workspace_dir).is_ok(), - "package {package_dir:?} does not seem to be inside workspace root {workspace_dir:?}", - ); + // It's not required that the members be inside the workspace directory: see + // for package in metadata.workspace_packages() { if package.manifest_path.parent().expect("remove Cargo.toml") == package_dir { debug!("resolved auto package filter to {:?}", package.name);