Skip to content

[bug] conan workspace create does not stop on build error #20258

Description

@spectralvoid0

Describe the bug

I am using conan 2.31.2 on linux.

If conan workspace create encounters an error when building one of the packages in the workspace, it continues on to try to create the remaining packages. Packages that depend on the failed package will fail with a Missing binary error.

I think that conan workspace create should stop on the first error.

How to reproduce it

Conanfiles

pkga/conanfile.py

from conan import ConanFile

class PkgaConanfile(ConanFile):
    name = "pkga"
    version = "0.1"

    def build(self):
        self.run("false")

pkgb/conanfile.py

from conan import ConanFile

class PkgbConanfile(ConanFile):
    name = "pkgb"
    version = "0.1"

    def requirements(self):
        self.requires("pkga/0.1")

Commands

conan workspace init
conan workspace add pkga
conan workspace add pkgb
conan workspace create

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions