mirror of
https://github.com/NixOS/nix
synced 2025-07-20 23:59:44 +02:00
Remove the "locked" flag from the fetcher cache
This also reworks the Mercurial fetcher (which was still using the old cache interface) to have two distinct cache mappings: * A ref-to-rev mapping, which is store-independent. * A rev-to-store-path mapping.
This commit is contained in:
parent
03eb4f7baa
commit
d084c1cb41
6 changed files with 45 additions and 58 deletions
|
@ -53,8 +53,7 @@ struct Cache
|
|||
Store & store,
|
||||
const Attrs & inAttrs,
|
||||
const Attrs & infoAttrs,
|
||||
const StorePath & storePath,
|
||||
bool locked) = 0;
|
||||
const StorePath & storePath) = 0;
|
||||
|
||||
virtual std::optional<std::pair<Attrs, StorePath>> lookup(
|
||||
Store & store,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue