[bug] Unexpected message output contaminating conan inspect --raw
See original GitHub issueWe’re using conan inspect --raw ...
to programmatically retrieve values from a conanfile. This used to work fine but started to fail some time ago. After some investigation I found that the output now contains an extra message before the line with the actual value:
Removing temporary .tgz files, they are stored in a different location now
8.0.0
This seems to be some kind of informational message regarding migration of .tgz files. I guess it’s usually fine to print this, but in commands like conan inspect
which are likely to be used for programmatic evaluation I’d recommend suppressing it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
conan inspect --raw prints status messages #5656 - GitHub
The documentation of conan inspect --raw states: "Print just the value of the requested attribute". However, the command prints not only the ...
Read more >conan inspect — conan 1.46.2 documentation
Displays conanfile attributes, like name, version, and options. Works locally, in local cache and remote. positional arguments: path_or_reference Path to a ...
Read more >https://huggingface.co/microsoft/prophetnet-large-...
... 48 swedish avoid extra uncle message covers allows surprise materials fame ... ##ious upset raw phil detective hiding resident vincent ##bly experiences ......
Read more >SOLUTIONS MANUAL
This manual contains solutions to all of the review questions and homework problems in Cryptography and Network Security, Fourth Edition. If you spot...
Read more >Testing best practices - GitLab Docs
Test heuristics can help solve this problem. They concisely address many of the common ways bugs manifest themselves in our code. When designing...
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
@franramirez688 I’ve already implemented that workaround in our pipeline. @memsharded I agree that using the json output would be the more powerful option, but in our case we’re just trying to read the version, so we would then need a JSON parser in the pipeline to parse the single value from the JSON struct or use a regex. Is the extra message gone in the
--json
case?A suggestion, the
conan inspect
contains a--json
argument for this purpose: programmatic access. Is there any specific reason why you are not using the json output? It would be way mor convenient than parsing the stdout unstructured output