conan icon indicating copy to clipboard operation
conan copied to clipboard

validate_build with compatible packages not raising the ConanInvalidConfiguration error

Open czoido opened this issue 3 years ago • 0 comments

Changelog: Fix: Fix validate_build with compatible packages not raising the ConanInvalidConfiguration error. Docs: https://github.com/conan-io/docs/pull/XXXX

In the process of testing something similar to this: https://github.com/conan-io/conan/pull/12031 on 1.X branch I noticed that when validate_build is used and there are some compatible packages it will fail with something like:

ERROR: Missing binary: fake/0.1:affba8ce0c5d515063c1e2327ab3378ecf5f1eda

fake/0.1: WARN: Can't find a 'fake/0.1' package for the specified settings, options and dependencies:
- Settings: compiler=apple-clang, compiler.libcxx=libc++, compiler.version=13
- Options: 
- Dependencies: 
- Requirements: 
- Package ID: affba8ce0c5d515063c1e2327ab3378ecf5f1eda

ERROR: Missing prebuilt package for 'fake/0.1'
Use 'conan search fake/0.1 --table=table.html -r=remote' and open the table.html file to see available packages
Or try to build locally from sources with '--build=fake'

More Info at 'https://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package'

and not the expected error raised in the validate_build()

Related to: https://github.com/conan-io/conan/issues/11786

czoido avatar Sep 06 '22 08:09 czoido