1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00

nix flake clone: Support all input types

For input types that have no concept of cloning, we now default to
copying the entire source tree.
This commit is contained in:
Eelco Dolstra 2025-11-17 19:27:45 +01:00
parent 95da93c05b
commit d07c24f4c8
6 changed files with 34 additions and 14 deletions

View file

@ -278,7 +278,8 @@ struct GitInputScheme : InputScheme
return res;
}
void clone(const Settings & settings, const Input & input, const std::filesystem::path & destDir) const override
void clone(const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
const override
{
auto repoInfo = getRepoInfo(input);