mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 05:31:00 +01:00
Remove Input::locked
This commit is contained in:
parent
4f8b253ea7
commit
90e9f50a66
7 changed files with 37 additions and 17 deletions
|
|
@ -482,7 +482,6 @@ struct GitInputScheme : InputScheme
|
|||
//input.attrs.erase("narHash");
|
||||
auto narHash = store->queryPathInfo(storePath)->narHash;
|
||||
input.attrs.insert_or_assign("narHash", narHash.to_string(SRI, true));
|
||||
input.locked = true;
|
||||
|
||||
return storePath;
|
||||
};
|
||||
|
|
@ -732,8 +731,6 @@ struct GitInputScheme : InputScheme
|
|||
input.attrs.insert_or_assign(
|
||||
"revCount",
|
||||
getRevCount(repoInfo, repoInfo.url, *input.getRev()));
|
||||
|
||||
input.locked = true;
|
||||
}
|
||||
|
||||
// FIXME: maybe we should use the timestamp of the last
|
||||
|
|
@ -744,6 +741,11 @@ struct GitInputScheme : InputScheme
|
|||
|
||||
return {makeFSInputAccessor(CanonPath(repoInfo.url), listFiles(repoInfo), std::move(makeNotAllowedError)), input};
|
||||
}
|
||||
|
||||
bool isLocked(const Input & input) const override
|
||||
{
|
||||
return (bool) input.getRev();
|
||||
}
|
||||
};
|
||||
|
||||
static auto rGitInputScheme = OnStartup([] { registerInputScheme(std::make_unique<GitInputScheme>()); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue