rattler
rattler copied to clipboard
feat: add support for layered package cache
Description
Resolves https://github.com/conda/rattler/issues/43
Stuff to note
- I tried to make this not a break, but alas. Specifically, i made
PackageCacheErrora#[non_exhaustive]enum, and modified some variants.
Hi @kelvinou01 - I also started hacking on this a bit but it looks like you are already much further progressed :)
Here was my attempt: https://github.com/conda/rattler/pull/998
@kelvinou01 is this pr ready?
it seems the pr does not contains the changes of the config key.
@kelvinou01 is this pr ready?
@gzm55 not yet, is there an urgent need for it?
no urgent need. but expect this feature for multi-user environment
@wolfv hey, could you help me review this?
Also, I did try implementing storing the capabilities cache like #998. However, I thought this PR was large enough already, so the capabilities cache can be introduced in a subsequent PR.
when select a read or write cache, can we prefer the one from which we can make a hard link?
@gzm55 I see how that can be useful! Do you think this feature is necessary to introduce with this PR, or can we do it in a subsequent one as i mentioned above?
@gzm55 I see how that can be useful! Do you think this feature is necessary to introduce with this PR, or can we do it in a subsequent one as i mentioned above?
I think a subsequent pr for the feature mentioned above is ok.
@baszalmstra is there other suggestions about this pr?
Would you be able to fix the merge conflict
@baszalmstra done!
@wolfv Would you be able to take a look at this PR?
Is there anything left blocking this PR?
I actually could use this feature well in rattler-build for temporary package caches during testing - so I'll fix the conflicts and merge it!
Thank you @kelvinou01 and sorry for the extremely long wait!
No worries at all. Happy to contribute!