From 3aff9c58c68d6882294e6586ddb384709ce95abe Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 02:47:32 +0000 Subject: populate: probe passage and pass sources too A passage source ran rsync on every run, about a dozen round trips to a remote target, and a pass source a command reading .pass_info, which tells whether the passwords changed. The probe lists the target paths of passage sources too, and reads what pass sources' .pass_info contains. After decrypting, a passage source lists its working directory with find, whose files have the times of their .age files and fixed modes, and doesn't run rsync if the listings are the same; Delivery::transfer does that for any source the probe listed. A pass source takes .pass_info from the probe. --- pkgs/populate/docs/design.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/populate/docs/design.md') diff --git a/pkgs/populate/docs/design.md b/pkgs/populate/docs/design.md index 8928809..f98a2f9 100644 --- a/pkgs/populate/docs/design.md +++ b/pkgs/populate/docs/design.md @@ -131,6 +131,12 @@ step doesn't rewrite: its messages, at each source's turn. - For symlink sources, the symlink there, if any. If it points to the target already, nothing runs. +- For passage sources, a listing too, which gets compared with one of the + working directory, after decrypting, with find: decrypted files have + the times of their `.age` files, and fixed modes, so unchanged secrets + don't run rsync. +- For pass sources, what `.pass_info` contains, which tells whether the + passwords changed, instead of a command of their own. - For git sources with a commit as ref, and without `fetchAlways`, the work tree's HEAD, its origin's URL, what `git status --ignored` and `git submodule status` print, but only if `git_problems` finds nothing wrong -- cgit v1.3.1 [cgit] Unable to lock slot /tmp/cgit/74300000.lock: Permission denied (13)