Fix #328: Remove duplicate computeJSONLHash declaration

The function was declared twice:
- Line 80: New version (simpler, no error wrapping)
- Line 390: Old version (with error wrapping)

This caused compilation failure in CI. Removed the old declaration at line 390.

Also fixed integrity_content_test.go to pass context.Context to sqlite.New()
as required by the updated API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-20 22:06:38 -05:00
parent 81c741ba05
commit 167ab6788b
2 changed files with 2 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ func TestContentBasedComparison(t *testing.T) {
jsonlPath := filepath.Join(beadsDir, "issues.jsonl")
// Create and populate database
localStore, err := sqlite.New(dbPath)
localStore, err := sqlite.New(ctx, dbPath)
if err != nil {
t.Fatalf("Failed to create store: %v", err)
}
@@ -180,7 +180,7 @@ func TestContentHashComputation(t *testing.T) {
jsonlPath := filepath.Join(beadsDir, "issues.jsonl")
// Create and populate database
localStore, err := sqlite.New(dbPath)
localStore, err := sqlite.New(ctx, dbPath)
if err != nil {
t.Fatalf("Failed to create store: %v", err)
}