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

Any way to not even have to download anything? #145

Closed
dpc opened this issue May 17, 2023 · 2 comments
Closed

Any way to not even have to download anything? #145

dpc opened this issue May 17, 2023 · 2 comments

Comments

@dpc
Copy link

dpc commented May 17, 2023

Some derivations in CI pipelines are only used to make sure they build successfully, and they don't change that often.

However when using nix build ..., even if a derivation was built before and is in cachix, all the artifacts will be downloaded ... just to throw them away immediately.

Is there a way to make nix not download anything if a given derivation is already in a binary cache? That would save a lot of time and probably bandwidth.

Some:

nix build --do-nothing-if-exists-in-cache
@domenkozar
Copy link
Member

See NixOS/nix#3946 for different attempts at building this.

https://github.com/nix-community/nix-eval-jobs is the closest it gets to get this to work (you do need an extra binary besides Nix, that's the downside).

@dpc
Copy link
Author

dpc commented May 18, 2023

Thank you.

@dpc dpc closed this as completed May 18, 2023
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

2 participants