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

permanent cache mounts #3934

Open
nrdxp opened this issue Mar 22, 2024 · 1 comment
Open

permanent cache mounts #3934

nrdxp opened this issue Mar 22, 2024 · 1 comment
Labels
type:proposal A proposal for a new feature

Comments

@nrdxp
Copy link

nrdxp commented Mar 22, 2024

Use case
It has been very difficult to predict when a CACHE mount in our project gets invalidated or wiped. Since it is a Rust based project and we use it primarily to cache the target dir and we also use cargo sweep to clean up old artifacts over a certain age we are okay with it basically never being invalidated or cleared for any reason (by earthly at least).

It would be nice if there were some sort of CACHE --permanent or something along those lines to ensure that this particular mount is never wiped or invalidated.

@nrdxp nrdxp added the type:proposal A proposal for a new feature label Mar 22, 2024
@nrdxp nrdxp changed the title cache mounts permanent cache mounts Mar 22, 2024
@alexcb
Copy link
Collaborator

alexcb commented Mar 25, 2024

This may be difficult to implement since it will require several changes to our buildkit fork; if anyone else would like this feature please upvote it with a 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:proposal A proposal for a new feature
Projects
Status: No status
Development

No branches or pull requests

2 participants