mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Provide a default Input::fetch() that uses lazyFetch()
This commit is contained in:
parent
df713a5d25
commit
c80b942c6e
3 changed files with 21 additions and 7 deletions
|
@ -134,7 +134,9 @@ struct GitArchiveInputScheme : InputScheme
|
|||
|
||||
bool hasAllInfo(const Input & input) override
|
||||
{
|
||||
return input.getRev() && maybeGetIntAttr(input.attrs, "lastModified");
|
||||
return input.getRev() &&
|
||||
true; // FIXME
|
||||
//maybeGetIntAttr(input.attrs, "lastModified");
|
||||
}
|
||||
|
||||
Input applyOverrides(
|
||||
|
@ -224,11 +226,6 @@ struct GitArchiveInputScheme : InputScheme
|
|||
return {res.storePath, input};
|
||||
}
|
||||
|
||||
std::pair<StorePath, Input> fetch(ref<Store> store, const Input & _input) override
|
||||
{
|
||||
throw UnimplementedError("GitArchive::fetch()");
|
||||
}
|
||||
|
||||
std::pair<ref<InputAccessor>, Input> lazyFetch(ref<Store> store, const Input & input) override
|
||||
{
|
||||
auto [storePath, input2] = downloadArchive(store, input);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue