mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
Use "git add --force --intent-to-add" for flake.lock
Fixes The following paths are ignored by one of your .gitignore files: flake.lock
This commit is contained in:
parent
ad42a78469
commit
0802e006f2
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ ResolvedFlake resolveFlake(EvalState & state, const FlakeRef & topRef, HandleLoc
|
|||
|
||||
// Hack: Make sure that flake.lock is visible to Git, so it ends up in the Nix store.
|
||||
runProgram("git", true, { "-C", refData->path, "add",
|
||||
"--force",
|
||||
"--intent-to-add",
|
||||
(topRef.subdir == "" ? "" : topRef.subdir + "/") + "flake.lock" });
|
||||
} else
|
||||
warn("cannot write lockfile of remote flake '%s'", topRef);
|
||||
|
|
Loading…
Reference in a new issue