Allow conan cache path adoptions via conf core.cache:path_prefix_fmt
#19189
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow users to change the conan cache path to a more human-readable one.
Therefore a new conan conf
core.cache:path_prefix_fmtis introduced which allows users to specify a format string for the path prefix for the cache folder. The prefix defaults toref.name[:5](which is currently the default).The format string can resolve the RecipeReference
ref, for example '{ref.name}{ref.name}{ref.revision}_'This is just a first draft with minimum effort to showcase the proposal.
If you agree with this proposal in general, I will continue to create specific tests for this feature.
Maybe I need your help with the tests: How can I enable this conf for all available tests to make sure that it does not break anything?
Changelog: (Feature): Allow conan cache path adoptions
Docs: https://github.com/conan-io/docs/pull/XXXX
developbranch, documenting this one.