forked from lix-project/lix
updateLockFile(): Make sure Git can see flake.lock
This commit is contained in:
parent
cfca793a20
commit
8c4e759efd
|
@ -399,6 +399,10 @@ void updateLockFile(EvalState & state, const Path & path)
|
||||||
FlakeRef flakeRef = FlakeRef("file://" + path); // FIXME: ugly
|
FlakeRef flakeRef = FlakeRef("file://" + path); // FIXME: ugly
|
||||||
auto lockFile = makeLockFile(state, flakeRef);
|
auto lockFile = makeLockFile(state, flakeRef);
|
||||||
writeLockFile(lockFile, path + "/flake.lock");
|
writeLockFile(lockFile, path + "/flake.lock");
|
||||||
|
|
||||||
|
// Hack: Make sure that flake.lock is visible to Git. Otherwise,
|
||||||
|
// exportGit will fail to copy it to the Nix store.
|
||||||
|
runProgram("git", true, { "-C", path, "add", "flake.lock" });
|
||||||
}
|
}
|
||||||
|
|
||||||
void callFlake(EvalState & state, const Dependencies & flake, Value & v)
|
void callFlake(EvalState & state, const Dependencies & flake, Value & v)
|
||||||
|
|
Loading…
Reference in a new issue