fix(ready): use rig root for beads resolution, not mayor/rig
Some checks failed
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Failing after 17s
CI / Test (push) Failing after 1m16s
CI / Lint (push) Failing after 18s
CI / Integration Tests (push) Successful in 1m5s
CI / Coverage Report (push) Has been skipped
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
Some checks failed
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Failing after 17s
CI / Test (push) Failing after 1m16s
CI / Lint (push) Failing after 18s
CI / Integration Tests (push) Successful in 1m5s
CI / Coverage Report (push) Has been skipped
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
The ready command was using constants.RigMayorPath(r.Path) which returns <rig>/mayor/rig, but this fails for rigs where the source repo doesn't have tracked beads. In those cases, rig-level beads are stored at <rig>/.beads directly. Using r.Path (rig root) allows ResolveBeadsDir to properly handle both: - Tracked beads: follows <rig>/.beads/redirect to mayor/rig/.beads - Local beads: uses <rig>/.beads directly Fixes "no beads database found" errors for google_cookie_retrieval and home_assistant_blueprints rigs. Closes: hq-c90jd Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -147,8 +147,10 @@ func runReady(cmd *cobra.Command, args []string) error {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(r *rig.Rig) {
|
go func(r *rig.Rig) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
// Use mayor/rig path where rig-level beads are stored
|
// Use rig root path - ResolveBeadsDir follows redirects to find actual beads.
|
||||||
rigBeadsPath := constants.RigMayorPath(r.Path)
|
// For tracked beads: <rig>/.beads/redirect -> mayor/rig/.beads
|
||||||
|
// For rig-local beads: <rig>/.beads directly
|
||||||
|
rigBeadsPath := r.Path
|
||||||
rigBeads := beads.New(rigBeadsPath)
|
rigBeads := beads.New(rigBeadsPath)
|
||||||
issues, err := rigBeads.Ready()
|
issues, err := rigBeads.Ready()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user