mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +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
|
@ -101,6 +101,7 @@ path4=$(nix eval --impure --refresh --raw --expr "(builtins.fetchMercurial file:
|
|||
[[ $path2 = $path4 ]]
|
||||
|
||||
echo paris > $repo/hello
|
||||
|
||||
# Passing a `name` argument should be reflected in the output path
|
||||
path5=$(nix eval -vvvvv --impure --refresh --raw --expr "(builtins.fetchMercurial { url = \"file://$repo\"; name = \"foo\"; } ).outPath")
|
||||
[[ $path5 =~ -foo$ ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue