Skip to content

fix(dep): use factory.NewFromConfig for cross-rig dependency resolution#1488

Merged
steveyegge merged 1 commit intosteveyegge:mainfrom
aleiby:fix-external-deps-dolt-backend
Feb 5, 2026
Merged

fix(dep): use factory.NewFromConfig for cross-rig dependency resolution#1488
steveyegge merged 1 commit intosteveyegge:mainfrom
aleiby:fix-external-deps-dolt-backend

Conversation

@aleiby
Copy link
Contributor

@aleiby aleiby commented Feb 4, 2026

Summary

resolveExternalDependencies() in cmd/bd/dep.go hardcodes SQLite storage when resolving cross-rig dependencies via routing. This fails silently when the target rig uses Dolt backend.

Changes

  • Replace hardcoded sqlite.New() with factory.NewFromConfig() which reads metadata.json to auto-detect the correct backend (SQLite, Dolt embedded, or Dolt server mode)
  • Update error message to reference targetBeadsDir instead of removed targetDBPath variable

Impact

  • bd dep list now correctly resolves external dependencies for Dolt-backed rigs
  • gt convoy status will show accurate counts for convoys tracking cross-rig issues

Fixes #1374


🤖 Tackled with Claude Code

resolveExternalDependencies() hardcoded SQLite storage when resolving
cross-rig dependencies, failing silently when the target rig uses Dolt.

Now uses factory.NewFromConfig() which reads metadata.json to determine
the correct backend (SQLite, Dolt embedded, or Dolt server mode).

Fixes steveyegge#1374

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@aleiby aleiby marked this pull request as ready for review February 4, 2026 07:34
aleiby added a commit to aleiby/beads that referenced this pull request Feb 4, 2026
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Owner

@steveyegge steveyegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - small, targeted fix replacing hardcoded sqlite.New() with factory.NewFromConfig() for cross-rig dependency resolution with Dolt backend.

@steveyegge steveyegge merged commit fc07838 into steveyegge:main Feb 5, 2026
6 of 7 checks passed
@aleiby aleiby deleted the fix-external-deps-dolt-backend branch February 5, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bd dep list external resolution hardcodes SQLite, ignores target rig's Dolt backend

2 participants