feat: unify scf discovery and fix shell tooling bugs

- scf: discover referenced text files with source-based ordering; cache canonical paths and bound scans, parsing and candidate display
- config: rewrite config includes atomically
- installer: preserve configuration contents, permissions and links; fix dry-run
- updater: recover stale updater scripts and report update failures
- riot: fix riot batches, dry runs, empty arguments and IPv6 SCP paths
- frigg: propagate Frigg authentication failures
- add offline regression tests and CI coverage

Signed-off-by: Dict Xiong <me@dxng.cn>
This commit is contained in:
Dict Xiong
2026-11-18 09:25:33 +08:00
parent 02ea21c839
commit 277c124d3b
13 changed files with 1834 additions and 251 deletions

View File

@@ -12,7 +12,7 @@ cleanup() {
}
trap cleanup EXIT
mkdir -m 700 "$GNUPGHOME"
unset DFS_IGNORE_COMMIT_SIGN DFS_UPDATE_GPG_KEY_FILE DFS_UPDATE_CHANNEL
unset DFS_IGNORE_COMMIT_SIGN DFS_UPDATE_GPG_KEY_FILE DFS_UPDATE_CHANNEL DFS_DRY_RUN
old_signer=old@example.invalid
new_signer=new@example.invalid
@@ -128,7 +128,7 @@ git -C "$remote" commit -q --allow-empty --no-gpg-sign -m 'Unsigned commit'
reject_update 'has no trusted signature or signed release tag'
without_gpg="$fixture/bin-without-gpg"
mkdir "$without_gpg"
for tool in bash dirname basename git grep mktemp cp chmod mv rm; do
for tool in bash dirname basename git grep mktemp cp chmod mv rm cmp; do
ln -s "$(command -v "$tool")" "$without_gpg/$tool"
done
PATH="$without_gpg" reject_update 'gpg not found. Set DFS_IGNORE_COMMIT_SIGN=1'