Fix Dolt backend init/daemon/doctor; prevent accidental SQLite artifacts; add integration tests; clean up lint (#1218)
* /{cmd,internal}: get dolt backend init working and allow issue creation
* /{website,internal,docs,cmd}: integration tests and more split backend fixes
* /{cmd,internal}: fix lint issues
* /cmd/bd/doctor/integrity.go: fix unable to query issues bug with dolt backend
* /cmd/bd/daemon.go: remove debug logging
This commit is contained in:
@@ -924,6 +924,7 @@ type SyncConflictRecord struct {
|
||||
// LoadSyncConflictState loads the sync conflict state from disk.
|
||||
func LoadSyncConflictState(beadsDir string) (*SyncConflictState, error) {
|
||||
path := filepath.Join(beadsDir, "sync_conflicts.json")
|
||||
// #nosec G304 -- path is derived from the workspace .beads directory
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
@@ -1023,7 +1024,7 @@ func resolveSyncConflicts(ctx context.Context, jsonlPath string, strategy config
|
||||
|
||||
// Handle manual strategy with interactive resolution
|
||||
if strategy == config.ConflictStrategyManual {
|
||||
return resolveSyncConflictsManually(ctx, jsonlPath, beadsDir, conflictState, baseMap, localMap, remoteMap, baseIssues, localIssues, remoteIssues)
|
||||
return resolveSyncConflictsManually(ctx, jsonlPath, beadsDir, conflictState, baseMap, localMap, remoteMap)
|
||||
}
|
||||
|
||||
resolved := 0
|
||||
@@ -1101,8 +1102,7 @@ func resolveSyncConflicts(ctx context.Context, jsonlPath string, strategy config
|
||||
|
||||
// resolveSyncConflictsManually handles manual conflict resolution with interactive prompts.
|
||||
func resolveSyncConflictsManually(ctx context.Context, jsonlPath, beadsDir string, conflictState *SyncConflictState,
|
||||
baseMap, localMap, remoteMap map[string]*beads.Issue,
|
||||
baseIssues, localIssues, remoteIssues []*beads.Issue) error {
|
||||
baseMap, localMap, remoteMap map[string]*beads.Issue) error {
|
||||
|
||||
// Build interactive conflicts list
|
||||
var interactiveConflicts []InteractiveConflict
|
||||
|
||||
Reference in New Issue
Block a user