aboutsummaryrefslogtreecommitdiffstats
path: root/lib/types/populate.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 21:09:17 +0000
committertv <tv@krebsco.de>2026-11-13 22:14:45 +0100
commit8dfa3f18d42d852ece3f2d9cf1ae117acccc0b15 (patch)
tree2f521e0c7307a4fac6481dc968a9e4f5c21a7cc0 /lib/types/populate.nix
parent0273a55087e2614323d6ebd145b08c56b370a483 (diff)
populate: refer to flakes as git+file: only with a usable .git
Writing the lock file of a git+file: flake, Nix runs Git, with the repository's configuration and hooks, which may run commands. A .git in a source's directory can come from anywhere, e.g. one planted in a materialized flake, or one a file source keeps. So drawing inputs refers to a flake as git+file: only if git_problems finds nothing wrong with its .git directory, the way git sources check their work trees, and else as path:. lock-foreign-git plants a .git in a materialized flake and in a file source that keeps it, whose configuration names an fsmonitor command.
Diffstat (limited to 'lib/types/populate.nix')
0 files changed, 0 insertions, 0 deletions