cget icon indicating copy to clipboard operation
cget copied to clipboard

build cache

Open maddanio opened this issue 5 years ago • 1 comments

is there a way to cache builds? main use case is for the ci, where we completeley build from scratch every time. conan then pulls these from its cache. we would like to move to cget possibly, because conan has some problems for us and being such a huge project is too hard to fix for us. ideally this cache would be remotely accessible, ideally requiring only http(s) on the remote.

maddanio avatar Jan 05 '21 15:01 maddanio

ok, I thought about this. there is already the concept of a package in cget. so what I will do is generate a hash from a source spec and build variant and if its a recipe the complete contents of the recipe folder and all its dependencies (recursively). then we have an "address". that can then be served via a local cache, or even remotely via http or scp. in the latter case I will likely add an os descriptor. packages would then be addressed: <os>/<name>/<recipe hash> where <name> is purely descriptive and will likely need to be generated by some simplification rule for complex specs

maddanio avatar Jan 07 '21 06:01 maddanio