1
1
Fork 0
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:
Eelco Dolstra 2022-08-10 16:47:36 +02:00
parent 4f8b253ea7
commit 90e9f50a66
7 changed files with 37 additions and 17 deletions

View file

@ -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