question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature] Generate a post-install report after "conan install"

See original GitHub issue

Hi,

I’m using the command conan install to install external packages and generate an --installer-folder.

I need a way to determine how many packages were Downloaded/Cached/Built during the conan install process.

Maybe if there was a new flag --packages-report or --packages-report-json, like:

conan install --packages-report --install-folder ./install_folder  ...
# Generates the JSON file ./install_folder/conanpackagesreport.json

And the expected content would be something like this

./install_folder/conanpackagesreport.json

{
    "summary": {
        "built": 2,
        "from_cache": 4,
        "downloaded": 2
    }
    ... // Add additional meaningful data here
}

@memsharded I’m totally in for developing this feature by myself, though I want to make sure you’ll approve it when the day comes … What do you think?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jul 25, 2022

Regarding the use in production, I assume you refer to “make it Highly available” (as I mentioned earlier) though I can’t find a way to make it highly available “for free”, see the docs:

Yes, you are totally right, the HA feature of Artifactory is a paid, one, I was confused by the OSS, and I thought it could be the conan_server

So getting back to the original issue, I’ll play with the existing --json report a bit more, I think it’ll answer my needs, closing this ticket.

Great. Let us know how it goes, I hope you can make it work.

@memsharded Thank you for your support, I’m using Conan at my workplace all over the place, and building for almost any platform - macOS, iOS, android-armv8, Linux, Windows (was a major challenge), Web Assembly (WASM, not even sure it’s possible with Conan). I would love to have a chat with you about it, to give you the perspective of a company that dropped VCPKG and moved to Conan, I have a feeling it will be fruitful for both of us. Let me know if you want to peer about it; Either way, thank you!

Sure, I am definitely willing to learn from your experience, please feel free to send an email to info@conan.io, and we can take it from there. Cheers!

0reactions
unfor19commented, Jul 25, 2022

I guess I’m using Artifactory CE -

image

Regarding the use in production, I assume you refer to “make it Highly available” (as I mentioned earlier) though I can’t find a way to make it highly available “for free”, see the docs:

Licensing Artifactory HA is supported with an Enterprise License. Each node in the cluster must be activated with a different license. Before adding any additional node, please add each additional node’s license using the node that is already running. source

But that’s another topic and I don’t want to spam you with questions about it over here 😃

So getting back to the original issue, I’ll play with the existing --json report a bit more, I think it’ll answer my needs, closing this ticket.

@memsharded Thank you for your support, I’m using Conan at my workplace all over the place, and building for almost any platform - macOS, iOS, android-armv8, Linux, Windows (was a major challenge), Web Assembly (WASM, not even sure it’s possible with Conan). I would love to have a chat with you about it, to give you the perspective of a company that dropped VCPKG and moved to Conan, I have a feeling it will be fruitful for both of us. Let me know if you want to peer about it; Either way, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

conan install — conan 1.44.1 documentation
Installs the requirements specified in a recipe (conanfile.py or conanfile.txt). It can also be used to install a concrete package specifying a reference....
Read more >
Post-install actions · Issue #1183 · conan-io/conan - GitHub
I am creating a package for Qt v5. Qt binaries contain hard-coded paths, so it will not work if copied to another directory....
Read more >
Installation from source - GitLab Docs
This is the official installation guide to set up a production GitLab server using the source files. To set up a development installation...
Read more >
C/C++ – Schneide Blog
This will setup conan with the given cmake installation. Install dependencies and build. Next run the conan install command: 1. 2.
Read more >
Package List — Spack 0.20.0.dev0 documentation
Needs post-install chmod/chown steps to enable full functionality. See package definition or `spack-build- out.txt` build log for details, e.g.:: tail -15 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found