diff --git a/poetry_multiproject_plugin/commands/checkproject/check.py b/poetry_multiproject_plugin/commands/checkproject/check.py index a8006a0..85bcafd 100644 --- a/poetry_multiproject_plugin/commands/checkproject/check.py +++ b/poetry_multiproject_plugin/commands/checkproject/check.py @@ -65,7 +65,12 @@ def collect_project(self, path: Path, temp_path: Union[str, None]) -> Path: def prepare_for_build(self, path: Path): project_poetry = Factory().create_poetry(path) - self.set_poetry(project_poetry) + if hasattr(self, "set_poetry"): + self.set_poetry(project_poetry) + elif hasattr(self, "_poetry"): + self._poetry = project_poetry + else: + raise ValueError("Cannot find expected Poetry Command internals.") def handle(self): is_verbose = self.option("verbose") diff --git a/pyproject.toml b/pyproject.toml index 898a2ae..ea86e55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "poetry-multiproject-plugin" -version = "1.8.2" +version = "1.8.3" description = "A Poetry plugin that makes it possible to use relative package includes." authors = ["David Vujic"] license = "MIT"