You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a package that has some option, which is disabled by default.
Create a test_package that requires the original package both as requires and tool_requires, but the tool_requires version should enable the option.
execute conan create . --build missing
The package gets built, and then during the package test phase you get the error that binary is missing for the package with the option enabled (which is true, as we conan created only the version with option=False.
I'd expect that --build missing would also build the original package with option=True and not complain about missing binary.
ERROR: Missing prebuilt package for 'mypkg/1.0.0@nenad/testing'
Check the available packages using 'conan list mypkg/1.0.0@nenad/testing:* -r=remote'
'conan test' tested packages must exist, and '--build' argument is used only for the 'test_package' dependencies, not for the tested dependencies
More Info at 'https://docs.conan.io/2/knowledge/faq.html#error-missing-prebuilt-package'
The text was updated successfully, but these errors were encountered:
We are checking it, but initially it doesn't seem a bug, but by design. conan create is intended to create 1 package_id, no more. If the test_package is expected to have 2 different binaries for the "tested" package it will not work.
Environment details
Steps to reproduce
requires
andtool_requires
, but thetool_requires
version should enable the option.conan create . --build missing
The package gets built, and then during the package test phase you get the error that binary is missing for the package with the option enabled (which is true, as we
conan created
only the version withoption=False
.I'd expect that
--build missing
would also build the original package withoption=True
and not complain about missing binary.An example that should reproduce the issue:
package:
test_package:
Logs
The text was updated successfully, but these errors were encountered: