beads/internal/storage/embeddeddolt/get_issue.go
beads/crew/emma 0cac11fbb6 fix(release): add CGO build constraints for embeddeddolt, bump to v0.63.2
Gate embeddeddolt package on //go:build cgo with stub files for !cgo.
Android and freebsd targets use CGO_ENABLED=0 since zig lacks sysroot
headers for these platforms. Server mode still works on all targets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 16:57:50 -07:00

21 lines
458 B
Go

//go:build cgo
package embeddeddolt
import (
"context"
"database/sql"
"github.com/steveyegge/beads/internal/storage/issueops"
"github.com/steveyegge/beads/internal/types"
)
func (s *EmbeddedDoltStore) GetIssue(ctx context.Context, id string) (*types.Issue, error) {
var issue *types.Issue
err := s.withConn(ctx, false, func(tx *sql.Tx) error {
var err error
issue, err = issueops.GetIssueInTx(ctx, tx, id)
return err
})
return issue, err
}