diff --git a/cruiz/workers/api/v1/lockcreate.py b/cruiz/workers/api/v1/lockcreate.py index 807e38f..7b569fd 100755 --- a/cruiz/workers/api/v1/lockcreate.py +++ b/cruiz/workers/api/v1/lockcreate.py @@ -104,6 +104,9 @@ def invoke(queue: multiprocessing.Queue[Message], params: CommandParameters) -> except AttributeError: build_folder = None + if node.conanfile.info.invalid: + raise ValueError(node.conanfile.info.invalid) + if node.recipe in (RECIPE_CONSUMER, RECIPE_VIRTUAL): new_node = PackageNode( node.name, diff --git a/cruiz/workers/api/v2/lockcreate.py b/cruiz/workers/api/v2/lockcreate.py index 254b763..e18073f 100755 --- a/cruiz/workers/api/v2/lockcreate.py +++ b/cruiz/workers/api/v2/lockcreate.py @@ -94,6 +94,9 @@ class FakeCLIArguments: # in Conan 2, there are no short paths short_paths = False + if node.conanfile.info.invalid: + raise ValueError(node.conanfile.info.invalid) + if node.recipe in (RECIPE_CONSUMER, RECIPE_VIRTUAL): new_node = PackageNode( node.name,