[question] how do i get the path to the exported or installed package in cache?
See original GitHub issueHi,
I would like to know the path in the cache to the package folder of a given package name and id.
For example:
/home/someuser/.conan/data/my-package-name/0.2.1/user/channel/package/e106f0e3de7fc8e9a057009394741ef4441857ec/
I tried with reconstructing the path but on windows, or with short/long path, it makes it hard to rebuild.
I would like a command or a python function to call that would take the package full name and the package id and it returns me the path to the package folder in cache.
It seems like ConanApi.get_path does the job but I don’t know how to call it from my script?
conan info does not return this information for a given package id, or I cannot get it work:
conan info my-package-name/0.2.1@user/channel:e106f0e3de7fc8e9a057009394741ef4441857ec
it does not work with package id
Gaetan
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Where is pip cache folder? - python - Stack Overflow
The location of the cache directory can be changed via the command line option --cache-dir . Share.
Read more >Where are packages stored installed with APT in Ubuntu 16.04?
When I tried to find packages in /var/cache/apt/archives , there are no packages. Where are they stored if it's not in this directory?...
Read more >BiocFileCache: Managing File Resources Across Sessions
If the path location exists and has been utilized to store files previously, the previous object will be loaded with any files saved...
Read more >Caching in GitLab CI/CD
Locally, under the gitlab-runner user's home directory: /home/gitlab-runner/cache/<user>/<project>/<cache-key>/cache.zip . Docker, Locally, under Docker volumes ...
Read more >Managing packages - Tanium Documentation
View package details ... From the Main menu, go to Administration > Content > Packages. The Packages grid displays most of the attributes...
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

conan info --paths --package-filter my_package/1.0.0@mine/org --only “package_folder” C:\path\to\my\recipe\that\uses\this\package\conanfile.py
I fixed my use case by implementing the following function in my Conan wrapper :
I know it is not elegant and may break at any time, but this is the only way I found to fetch the real package folder using the same layout mechanism that what conan actually use.