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

idea: nix-collect-garbage "--delete-only-substitutable" #2553

Open
dtzWill opened this issue Nov 20, 2018 · 5 comments
Open

idea: nix-collect-garbage "--delete-only-substitutable" #2553

dtzWill opened this issue Nov 20, 2018 · 5 comments
Labels

Comments

@dtzWill
Copy link
Member

dtzWill commented Nov 20, 2018

Basically, it'd be neat to make it easy to collect builds that are already available via substituters (and not reference locally, hence nix-collect-garbage). I suppose what I'm really looking for is "--dont-delete-if-not-available-anywhere-else-yet" and the use case is on my builders so I can free up space without losing build progress for things not yet uploaded.

Flag name may need to be improved :).

Thoughts? Opinions?

@lheckemann
Copy link
Member

As an approximation, you could delete things by signature. Probably more efficient than querying the substituter for every one of your paths.

@danbst
Copy link
Contributor

danbst commented Mar 7, 2019

I'd vote for this to be default, and explicit flag to force GC those.

On other hand, typical NixOS build produces small unique derivations (for each unique configuration file). These are not worth saving. So some parameter "save derivations, which take more than x seconds to rebuild and are not availble in binary caches" =)

@lheckemann
Copy link
Member

That last suggestion depends on #1710.

@stale
Copy link

stale bot commented Feb 20, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 20, 2021
@stale
Copy link

stale bot commented Apr 28, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this as completed Apr 28, 2022
@thufschmitt thufschmitt reopened this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants