diff --git a/components/polylith/diff/collect.py b/components/polylith/diff/collect.py index 26b8b5b4..afb833c8 100644 --- a/components/polylith/diff/collect.py +++ b/components/polylith/diff/collect.py @@ -13,7 +13,9 @@ def _parse_folder_parts(folder: str, changed_file: Path) -> str: def _get_changed(folder: str, changed_files: List[Path]) -> set: return { - _parse_folder_parts(folder, f) for f in changed_files if folder in f.as_posix() + _parse_folder_parts(folder, f) + for f in changed_files + if str.startswith(f.as_posix(), folder) } @@ -25,9 +27,7 @@ def _get_changed_bricks( return sorted(_get_changed(d, changed_files)) -def get_changed_components( - changed_files: List[Path], namespace: str -) -> list: +def get_changed_components(changed_files: List[Path], namespace: str) -> list: return _get_changed_bricks(repo.components_dir, changed_files, namespace) diff --git a/projects/poetry_polylith_plugin/pyproject.toml b/projects/poetry_polylith_plugin/pyproject.toml index 96d5fdd6..abe8e638 100644 --- a/projects/poetry_polylith_plugin/pyproject.toml +++ b/projects/poetry_polylith_plugin/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "poetry-polylith-plugin" -version = "1.10.0" +version = "1.10.1" description = "A Poetry plugin that adds tooling support for the Polylith Architecture" authors = ["David Vujic"] homepage = "https://davidvujic.github.io/python-polylith-docs/"