Merge pull request #1375 from NixOS/nix-2.21

Nix 2.21
This commit is contained in:
John Ericson
2024-04-12 17:28:37 -04:00
committed by GitHub
19 changed files with 60 additions and 90 deletions

View File

@ -396,7 +396,7 @@ sub narinfo :Path :Args(StrMatch[NARINFO_REGEX]) {
my ($hash) = $narinfo =~ NARINFO_REGEX;
die("Hash length was not 32") if length($hash) != 32;
my $path = queryPathFromHashPart($hash);
my $path = $MACHINE_LOCAL_STORE->queryPathFromHashPart($hash);
if (!$path) {
$c->response->status(404);