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

Is it possible to support multiple upstream caches? #27

Open
ipetkov opened this issue Oct 15, 2023 · 1 comment
Open

Is it possible to support multiple upstream caches? #27

ipetkov opened this issue Oct 15, 2023 · 1 comment

Comments

@ipetkov
Copy link

ipetkov commented Oct 15, 2023

My use case is I have a cachix cache which is set to not cache anything already present in cache.nixos.org. In my builds I'd like for the magic-cache to only contain anything not present in either of my cache or cache.nixos.org, so there is no obviously correct (to me at least) value for which I should set upstream-cache if I only had to pick one

@ipetkov
Copy link
Author

ipetkov commented Oct 15, 2023

Did some digging in the magic-nix-cache sources, looks like any new store paths get uploaded which does not take into account whether the upstream cache(s) also include it

https://github.com/DeterminateSystems/magic-nix-cache/blob/a2eb0c6759c08aa7b288708effccf9047a1bb525/magic-nix-cache/src/api.rs#L52-L57

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

1 participant