conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
7.95k stars 951 forks source link

Fix `conan list ... --format=compact` for package revisions #16490

Closed AbrilRBS closed 2 weeks ago

AbrilRBS commented 2 weeks ago

Changelog: Bugfix : Fix conan list ... --format=compact for package revisions. Docs: Omit

I might have gone a bit overboard with the test parametrization, the improtant few are the last ones, but they don't hurt either

Checking the code, I actually can't see where a package revision would get the info key, but I've left it instead of removing it in case I'm not finding it in some other part of the codebase

memsharded commented 2 weeks ago

Checking the code, I actually can't see where a package revision would get the info key, but I've left it instead of removing it in case I'm not finding it in some other part of the codebase

yes, that code is fired when no last #* is added, so:

conan list zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:7bfde258ff4f62f75668d0896dbddedaa7480a0f -f=compact

will read the info and display it.

Maybe the discussion would be if we want to list the info part also when listing the package-revisions, at the moment it is not added because it is a different API call.