mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
Remove Input::locked
This commit is contained in:
parent
4f8b253ea7
commit
90e9f50a66
7 changed files with 37 additions and 17 deletions
|
|
@ -194,8 +194,6 @@ struct GitArchiveInputScheme : InputScheme
|
|||
auto rev = input.getRev();
|
||||
if (!rev) rev = getRevFromRef(store, input);
|
||||
|
||||
input.locked = true;
|
||||
|
||||
input.attrs.erase("ref");
|
||||
input.attrs.insert_or_assign("rev", rev->gitRev());
|
||||
|
||||
|
|
@ -240,6 +238,11 @@ struct GitArchiveInputScheme : InputScheme
|
|||
|
||||
return {accessor, input2};
|
||||
}
|
||||
|
||||
bool isLocked(const Input & input) const override
|
||||
{
|
||||
return (bool) input.getRev();
|
||||
}
|
||||
};
|
||||
|
||||
struct GitHubInputScheme : GitArchiveInputScheme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue