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

Ability to force expire individual tarballs and artifacts downloaded with builtins.fetch* #1223

Open
copumpkin opened this issue Feb 8, 2017 · 8 comments
Assignees
Labels
cli The old and/or new command line interface feature Feature request or proposal UX The way in which users interact with Nix. Higher level than UI.

Comments

@copumpkin
Copy link
Member

I think we can set the (somewhat awkwardly named) tarball-ttl option today but that applies to all artifacts downloaded that way. It would be nice to be able to expire them manually. I could probably modify the .info file to shift the timestamp back, but that feels awkward.

cc @edolstra

@copumpkin
Copy link
Member Author

I think the mechanism today would be to rm ${XDG_CACHE_DIR:-~/.cache}/nix/tarballs/* or something.

@asmodehn
Copy link

So, what would be the simplest way today to get one specific tarball to expire, in order to re-download it often/everytime ?

@deliciouslytyped
Copy link

deliciouslytyped commented Dec 21, 2019

An optional ttl argument for fetch functions sounds sufficient?

@stale
Copy link

stale bot commented Feb 15, 2021

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

@stale stale bot added the stale label Feb 15, 2021
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/local-flake-based-nix-search-nix-run-and-nix-shell/13433/11

@stale stale bot removed the stale label Sep 15, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

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

@stale stale bot added the stale label Apr 16, 2022
@fricklerhandwerk fricklerhandwerk added feature Feature request or proposal UX The way in which users interact with Nix. Higher level than UI. cli The old and/or new command line interface labels Sep 12, 2022
@toraritte
Copy link
Contributor

Still relevant. Currently my only solution is to delete the offending cached file from the Nix store via nix-store --delete.

@stale stale bot removed the stale label Apr 5, 2023
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/infinite-loop-when-importing-fetched-nix-expression-with-relative-path/27032/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli The old and/or new command line interface feature Feature request or proposal UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

No branches or pull requests

8 participants