fix(formulas): replace hardcoded ~/gt/ paths with $GT_ROOT (#758)

* fix(formulas): replace hardcoded ~/gt/ paths with $GT_ROOT

Formula files contained hardcoded ~/gt/ paths that break when running
Gas Town from a non-default location (e.g., ~/gt-private/). This causes:

- Dogs stuck in working state (can't write to wrong path)
- Cross-town contamination when ~/gt/ exists as separate town
- Boot triage, deacon patrol, and log archival failures

Replaces all ~/gt/ and $HOME/gt/ references with $GT_ROOT which is
set at runtime to the actual town root directory.

Fixes #757

* chore: regenerate embedded formulas

Run go generate to sync embedded formulas with .beads/formulas/ source.
This commit is contained in:
Daniel Sauer
2026-01-21 05:19:42 +01:00
committed by GitHub
parent 0a6b0b892f
commit e591f2ae25
10 changed files with 26 additions and 26 deletions
@@ -132,7 +132,7 @@ gt daemon rotate-logs
gt doctor --fix
```
Old logs are moved to `~/gt/logs/archive/` with timestamps.
Old logs are moved to `$GT_ROOT/logs/archive/` with timestamps.
"""
[[steps]]