From 1ff2dd91954257082e46f5da8701fa2c3a85176c Mon Sep 17 00:00:00 2001 From: davidvujic Date: Sun, 8 Oct 2023 12:42:10 +0200 Subject: [PATCH 1/2] fix(poly diff): filter out files changed by checking path beginning with brick and top namespace --- components/polylith/diff/collect.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) From af7df6873b73f4b3169cf062c3276d779bbe0b9c Mon Sep 17 00:00:00 2001 From: davidvujic Date: Sun, 8 Oct 2023 12:43:44 +0200 Subject: [PATCH 2/2] bump version to 1.10.1 --- projects/poetry_polylith_plugin/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/"