Add binary cache only for content-addressed paths #1128

Open
opened 2026-02-09 19:11:43 +00:00 by yu-re-ka · 1 comment
Member

I'm always frustrated when github / kernel.org / ... blocks me from downloading eval or build sources, and then my whole build fails, and also when downloading eval sources is slow.

Describe the solution you'd like

I wish I could use an archival binary cache just for content-addressed paths (including eval sources with narHash), so that I don't have to trust this binary cache. Then, the sources could be downloaded from the fast binary cache and I wouldn't run into rate limits or be blocked by temporary downtimes of the original sources.

Describe alternatives you've considered

For FODs some of these mechanisms already exist (at least in nixpkgs when building them, multiple mirrors can be tried). I could attempt to convert all my eval sources to FODs + IFD.

Additional context

## Is your feature request related to a problem? Please describe. I'm always frustrated when github / kernel.org / ... blocks me from downloading eval or build sources, and then my whole build fails, and also when downloading eval sources is slow. ## Describe the solution you'd like I wish I could use an archival binary cache just for content-addressed paths (including eval sources with narHash), so that I don't have to trust this binary cache. Then, the sources could be downloaded from the fast binary cache and I wouldn't run into rate limits or be blocked by temporary downtimes of the original sources. ## Describe alternatives you've considered For FODs some of these mechanisms already exist (at least in nixpkgs when building them, multiple mirrors can be tried). I could attempt to convert all my eval sources to FODs + IFD. ## Additional context
109 KiB
Owner

this would be really nice to have, but doing it properly requires some rearchitecturing of how we handle caches in general. probably won't happen any time soon :(

this would be really nice to have, but doing it properly requires some rearchitecturing of how we handle caches in general. probably won't happen any time soon :(
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1128
No description provided.