Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support download cache to keep original (un-extracted) files #3184

Closed
awesomebytes opened this issue Feb 22, 2025 · 3 comments
Closed

Support download cache to keep original (un-extracted) files #3184

awesomebytes opened this issue Feb 22, 2025 · 3 comments

Comments

@awesomebytes
Copy link
Contributor

Problem description

This may be a cross post with an issue I posted on pixi-pack however, maybe it makes sense to request this directly on pixi.

I was trying to use pixi-pack (which is fantastic!) and I found out that it would re-download the packages I just installed in my project with pixi. Would it make any sense to add a config/flag in pixi to, optionally, also store the original files?

Thank you very much for your project :)

@nichmor
Copy link
Contributor

nichmor commented Feb 24, 2025

I think we ( or pixi-pack in this case ) could use rattler-cache for this. We already have a package cache there. https://github.com/conda/rattler/blob/main/crates/rattler_cache/src/package_cache/mod.rs

it is possible to request the package record and it will reuse the one already unpacked on the disk

@pavelzw
Copy link
Contributor

pavelzw commented Feb 24, 2025

https://github.com/conda/rattler/blob/a06f763fca9bf8ecc752217960137595d4f49bb1/crates/rattler_cache/src/package_cache/mod.rs#L36

cache of extracted Conda packages on disk

we would need non-extracted but i think the way we solved it now in Quantco/pixi-pack#104 is fine as well (and also not really complicated) so we can probably close this issue

@awesomebytes
Copy link
Contributor Author

I agree, closing the issue as I think the main "user" would be pixi-pack anyways, and what we implemented there does the trick :)

Thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants