conan-package-tools icon indicating copy to clipboard operation
conan-package-tools copied to clipboard

feature request: save packages report to a file

Open boussaffawalid opened this issue 6 years ago • 4 comments

It would be very helpful if you could add an option to generate/save a report of generated packages details.

Thanks

boussaffawalid avatar Jul 02 '19 21:07 boussaffawalid

Maybe store the json output? https://docs.conan.io/en/latest/reference/commands/output/install.html

conan create . user/channel --json report.json

Do you think that be valid for your use case?

danimtb avatar Jul 03 '19 07:07 danimtb

@danimtb not really, what I meant something similar to what the conan-package-tools print already to console but with the option to save it to file.

+---------------+--------------------+--------------------+--------------+--------+ | compiler | compiler.runtime | compiler.version | build_type | arch | |---------------+--------------------+--------------------+--------------+--------| | Visual Studio | MD | 14 | Release | x86_64 | | Visual Studio | MDd | 14 | Debug | x86_64 | +---------------+--------------------+--------------------+--------------+--------+

Context: we use a build.py script to package a lot of projects in CI and we control this build script using the different environment variables that conan-package-tools provide. However, there is no way currently to figure out what was build exactly.

A report should contains for example:

  • Full package name
  • Different build types
  • Different archs
  • Remote channel where the packages were uploaded
  • build time will be very helpful as well .....

boussaffawalid avatar Jul 03 '19 18:07 boussaffawalid

Hi @boussaffawalid !

Have you checked lockfiles?

It's not exactly a sheet, but it contains all info from the specific build.

uilianries avatar Sep 10 '19 20:09 uilianries

@uilianries lockfiles provide somehow these information, however I'm not sure how to integrate that with CPT

boussaffawalid avatar Oct 28 '19 10:10 boussaffawalid