Skip to content

Commit

Permalink
Fix manifest filtering with shared manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Oct 6, 2023
1 parent 86bda2f commit d2ad2b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lockfile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ pub fn find_lockable_files_at(root: impl AsRef<Path>) -> 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.
Expand Down

0 comments on commit d2ad2b4

Please sign in to comment.