From d2ad2b4be18873132c8dacb0c3f80c72f844236a Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 6 Oct 2023 21:09:54 +0200 Subject: [PATCH] Fix manifest filtering with shared manifests --- lockfile/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lockfile/src/lib.rs b/lockfile/src/lib.rs index 780bc8249..33fbb5646 100644 --- a/lockfile/src/lib.rs +++ b/lockfile/src/lib.rs @@ -316,7 +316,8 @@ pub fn find_lockable_files_at(root: impl AsRef) -> Vec<(PathBuf, LockfileF let mut lockfile_dirs = lockfiles.iter().filter_map(|(path, format)| Some((path.parent()?, format))); remove |= lockfile_dirs.any(|(lockfile_dir, lockfile_format)| { - manifest_format == lockfile_format && manifest_path.starts_with(lockfile_dir) + lockfile_format.is_path_manifest(manifest_path) + && manifest_path.starts_with(lockfile_dir) }); // Filter out `setup.py` files with `pyproject.toml` present.