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>
21 lines
458 B
Go
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
|
|
}
|