-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] ConanInvalidConfiguration doesn't raise exception when using conan install #10602
Comments
This is kind of expected, because the |
#10725 tries this, but sounds a bit risky for 1.X, we will analyze it. |
#10725 was merged, but it is displaying only a warning, not a hard error, because there are situations that could make sense (and it could be breaking), for example, installing some dependencies for a system to see if able to build locally, before removing the |
Merged to 2.0 raising exception. |
Hi @memsharded, are you able to elaborate on this use case? From what you've described, that's exactly the use case we would be trying to prevent - ability to say "No, this package can't be installed on this operating system" (or any other criteria) and a manual attempt to do so would fail. Why does this need to be a warning and not a hard error? |
Yes, lets say that you have a package So just in case some users are already relying on this behavior, we are not raising in 1.X but just warning, and then raising in 2.0 (and the solution there will be to modify the |
Seems to be related to conan-io/conan-center-index#13001 |
Description
I'm running into an issue where it doesn't appear that
ConanInvalidConfiguration
exceptions aren't being raised when executingconan install
, but are being raised when executingconan create
. Is this inconsistent behaviour intentional or a bug? If it's intentional, what's the method of invalidating configurations when usingconan install
?Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Add the following
validate()
definition toconanfile.py
:Logs (Executed commands with output) (Include/Attach if Applicable)
conan install
does not throw:conan create
does throw:The text was updated successfully, but these errors were encountered: