refactor(skills_hub): keep ensure_hub_dirs seed literals (tests stub HubLockFile with a lambda)

This commit is contained in:
Teknium
2026-09-02 16:07:36 -07:00
parent d320d5f741
commit f3810c4b97
+2 -2
View File
@@ -353,9 +353,9 @@ def ensure_hub_dirs() -> None:
_quarantine_dir().mkdir(exist_ok=True)
_index_cache_dir().mkdir(exist_ok=True)
for path, initial in (
(_lock_file(), json.dumps(HubLockFile.EMPTY) + "\n"),
(_lock_file(), '{"version": 1, "installed": {}}\n'),
(_audit_log(), ""),
(_taps_file(), json.dumps(TapsManager.EMPTY) + "\n"),
(_taps_file(), '{"taps": []}\n'),
):
if not path.exists():
path.write_text(initial, encoding="utf-8")