diff options
| author | tv <tv@krebsco.de> | 2026-11-20 01:48:55 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 01:48:55 +0000 |
| commit | 7837a236e728988fcd501917444828b790c367f9 (patch) | |
| tree | f2f3b91ffe0fd7f60f71f12c5f4f871c92916665 /pkgs/populate/src/shell.rs | |
| parent | f02b09eae7e806f2fe9caa26b4975b94351d7e27 (diff) | |
populate: lock files rewritten in place change only if they differ
A file or git source whose lock file the flakes step rewrites in place
gets the original back from delivering it, on every run, from rsync, or
from git reset, which also printed HEAD is now at, and Nix printed that
it updates the lock file, so the record said the source changed on every
run. Populate keeps a copy of the rewritten lock file in
.populate/locks/<name>, and the flakes step compares with it, printing
what Nix says about the lock file, and changed, only if it differs.
Delivering such a source doesn't count bringing back the lock file:
rsync returns the paths of what it changed, and the git source's script
takes the lock file's path, and resets quietly if that's all that
differs.
relock also checks that the second, unchanged, run prints nothing about
lock files, and says nothing changed, now for rewriting in place too.
Diffstat (limited to 'pkgs/populate/src/shell.rs')
0 files changed, 0 insertions, 0 deletions
