fix: clean up .beads directory before Nix Flake test

The Nix Flake CI test was failing because the repository has an existing
.beads/issues.jsonl file checked in, which caused bd init to refuse to
initialize (detecting it as a fresh clone with existing data).

Solution: Remove .beads before running bd init in the test to start fresh.
This commit is contained in:
matt wilkie
2025-11-29 00:49:33 -07:00
parent 9182e9f30d
commit 2eec4f038a

View File

@@ -101,6 +101,7 @@ jobs:
run: |
export BEADS_DB="$PWD/.ci-beads/beads.db"
mkdir -p "$(dirname "$BEADS_DB")"
rm -rf .beads
nix run .#default -- --db "$BEADS_DB" init --quiet --prefix ci
nix run .#default -- --db "$BEADS_DB" > help.txt
- name: Verify help text