[bug] conan inspect throws an error in V2 mode if there is no option in the recipe
See original GitHub issueEnvironment Details
- OS: macOS 12.3.1
- Xcode: 13.3.1
- Conan: 1.47.0
Steps to reproduce
create a recipe without an option
set the environment to enable ConanV2Mode
run conan inspect conanfile.txt
ERROR: Conan v2 incompatible: Declare ‘default_options’ as a dictionary
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Changelog — conan 1.36.0 documentation
Conan 1.36 shouldn't break any existing 1.0 recipe or command line invocation. If ... #8186; Fix: Throw error when the recipe description is...
Read more >conan Changelog - pyup.io
Fix: If Conan fails to load a custom command now it fails with a useful error message (https://github.com/conan-io/conan/pull/11720)
Read more >Troubleshooting Omnibus GitLab installation issues
This error is thrown when /etc/gitlab/gitlab.rb configuration file contains configuration that is invalid or unsupported. Double check that there are no ...
Read more >Release Notes — scikit-build 0.16.5.dev1+ge82fe46 ...
Including it may slow down the search and force the IDE generator instead, but will at least no longer discover GCC instead. Bug...
Read more >Troubleshooting AVS Device SDK Common Issues
When you try to run the Alexa Smart Screen SDK sample app on a new device, you see the following error. You have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @MarcelRaad @NoWiseMan
Quick question: What is the purpose of running a
conan inspect
over aconanfile.txt
? I guess it is a typo and it meantconanfile.py
?Also a quick note: Since Conan 2.0 has been in alpha, the Conan v2 mode has been no longer maintained, so the set of validations and checks that it implements would be small compared to everything that Conan 2.0 alphas and betas have been providing. It is recommended to start running things against the released betas to check what could be failing, and report possible issues.
Yes, that is the thing, I don’t think that CONAN_V2_MODE will capture more than 20% of the 2.0 changes, so at some point installing 2.0 (in a python virtualenv, recommended) will be the only way.
If the workaround is enough atm, then I will close this issue as “not planned”, but feel free to re-open if necessary. Thanks!