-
Notifications
You must be signed in to change notification settings - Fork 991
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] default_options does raise any error/warn if a package is not in reqiures #17511
Comments
Hi @ashley-b Thanks for your question.
The reason is that even for the same package name is very common that options change. New options are added, some options are removed, etc. So failing everytime that an option doesn't exist for any arbitrary version of a package makes it quite annoying for users. |
Thanks for you quick response and the great work with Conan. This make sense for patterns, but I just tried It feels a bit strange that this installs, when package dontexist/1.3.2 does not exist either in the local cache or remotes |
Consider that you have it in a profile file instead of command line (recommended to use profile files):
Profiles are used thorougly accross projects, so the same profile is applied always for example when creating packages with |
Thanks for the detailed use-case, I agree in this instance erroring out would be annoying. But perhaps issuing a warning or info level message about unused options could be useful for debugging. Thanks again |
I am afraid that this would also be too noisy in the output. Consider there are packages out there with tenths of options, like Qt, Boost and others. So users have profiles with a ton of options. Using these profiles for any package other than those ones with so many options, also result in a ton of annoying warnings that also are not real or can be actionable, users also consider them as false positives and report against them. |
Describe the bug
Conan version 2.11.0
Apologies in advance if this is not a bug, but just a limitation.
In a small project I'm working on, I found one of the options I was setting in the configure(self) method was being ignore when I ran
conan graph info
, I discovered the package name I was using was misspelt. I corrected this and that fixed itBut I think Conan should be able to warn or error if the package or option is never referenced
How to reproduce it
conanfile.txt
The text was updated successfully, but these errors were encountered: