Files
pad/internal
xarmian d6e153a583 fix(test): the new config test needed a writable HOME (Nix CI)
`config.Load()` resolves and CREATES ~/.pad, so
TestStreamAndRedisEnvMapping passed on any machine with a writable HOME
and failed in the Nix check sandbox, which sets HOME to an unwritable
path: "Load: mkdir /homeless-shelter: permission denied".

Every other test in this package already sets HOME to a t.TempDir() for
exactly this reason. Mine did not, and no local gate could tell me —
build, lint, `go test ./...` and `-race` all run with my HOME writable.
Only the Nix leg exercises the sandboxed shape, which is the second time
that leg has been the sole instrument for a class the whole local matrix
is blind to.

Verified both directions locally by compiling the test binary and running
it under a read-only HOME rather than trusting CI to re-run: fixed passes,
unfixed fails with the same message the sandbox reported.

Claude-Session: https://claude.ai/code/session_01JVDBKbgn3Xt7ndW1YoYd8X
2026-08-22 05:44:32 +00:00
..