Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(ci): support tmpfiles without dry-run
AkitaOnRails14d43e054b29
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2d609b5e..4453af79 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).## [Unreleased]+### Fixed+- Native packaging CI now supports `systemd-tmpfiles` versions that do not+ provide `--dry-run`, while still operating only inside a temporary alternate+ root.## [0.3.2] - 2026-05-27### Fixeddiff --git a/scripts/check-native-packaging.sh b/scripts/check-native-packaging.shindex dd2c967b..e114f800 100755--- a/scripts/check-native-packaging.sh+++ b/scripts/check-native-packaging.sh@@ -123,12 +123,18 @@ main() {assert_contains "${TMP_ROOT}/etc/passwd" "ai-memory service user:/var/lib/ai-memory:/usr/bin/nologin"assert_contains "${TMP_ROOT}/etc/group" "ai-memory"- log "Checking tmpfiles in dry-run alternate root"- tmpfiles_output="$(systemd-tmpfiles --root="${TMP_ROOT}" --create --dry-run "${TMP_ROOT}/usr/lib/tmpfiles.d/ai-memory.conf" 2>&1)"- case "${tmpfiles_output}" in- *"/var/lib/ai-memory"*) ;;- *) fail "tmpfiles dry-run did not plan /var/lib/ai-memory: ${tmpfiles_output}" ;;- esac+ log "Checking tmpfiles in alternate root"+ if systemd-tmpfiles --help 2>&1 | grep -q -- '--dry-run'; then+ tmpfiles_output="$(systemd-tmpfiles --root="${TMP_ROOT}" --create --dry-run "${TMP_ROOT}/usr/lib/tmpfiles.d/ai-memory.conf" 2>&1)"+ case "${tmpfiles_output}" in+ *"/var/lib/ai-memory"*) ;;+ *) fail "tmpfiles dry-run did not plan /var/lib/ai-memory: ${tmpfiles_output}" ;;+ esac+ else+ systemd-tmpfiles --root="${TMP_ROOT}" --create "${TMP_ROOT}/usr/lib/tmpfiles.d/ai-memory.conf" >/dev/null+ test -d "${TMP_ROOT}/var/lib/ai-memory" || fail "tmpfiles did not create /var/lib/ai-memory in alternate root"+ test "$(stat -c '%a' "${TMP_ROOT}/var/lib/ai-memory")" = "750" || fail "tmpfiles created /var/lib/ai-memory with unexpected mode"+ fiassert_contains packaging/tmpfiles/ai-memory.conf "d /var/lib/ai-memory 0750 ai-memory ai-memory -"log "Checking systemd units in alternate root"