Require isolated state dir for test runs

This commit is contained in:
Joe Julian
2026-03-29 16:26:21 -07:00
parent 1c4fb59960
commit 20d5b3ba3d
+2
View File
@@ -125,4 +125,6 @@ These features are product requirements, not “nice to have” ideas.
- Keep `golangci-lint` passing.
- Keep `go test ./...` passing.
- When running tests or other automated validation that may touch persisted UI state, set `KEEPASSGO_STATE_DIR` to an isolated temporary directory so recent-vault history and other local state do not pollute the users real config.
- Prefer commands shaped like `KEEPASSGO_STATE_DIR=\"$(mktemp -d)\" go test ./...` for ad hoc local validation unless a test already manages its own isolated state directory.
- Do not commit generated binaries.