conan-io / conan

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

conan 2.0 replacement for conan 1.0 get command #17058

Closed rajesh-kareti-infovision closed 4 hours ago

rajesh-kareti-infovision commented 5 hours ago

What is your question?

how to get the recipe file for a packgae in conan 2.0 like conan 2.0 replacement for conan 1.0 get command

Have you read the CONTRIBUTING guide?

memsharded commented 4 hours ago

Hi @rajesh-kareti-infovision

Thanks for your question.

There is no direct replacement for the conan get command in Conan 2.

To know which folder has some recipe (including the conanfile in case you want to check it); the recommendation would be:

conan cache path mypkg/myversion

And it will return the folder containing the conanfile.py.

rajesh-kareti-infovision commented 4 hours ago

Thanks. This has solved my issue

memsharded commented 3 hours ago

Thanks for the feedback!

Just in case. Conan 2 defines new tools and ways of doing this. If you were using conan get to do some operation in CI, this is probably discouraged in Conan 2. If it was only to list and see the code of some dependency, then it might be ok, but recall that the cache is read-only, it is forbidden to modify files inside the cache. Feel free to open new tickets for any further question you might have.