Revert commitse5330641and0df41523which removed embedded Dolt mode from the beads codebase. The embedded Dolt removal was only intended for Gas Town, not for Beads. Restores: - dolthub/driver dependency and embedded connection path - Advisory flock (AccessLock) for concurrent process protection - Embedded connector lifecycle management in DoltStore - All CGO build tags across ~45 files - Vendored go-icu-regex library - nocgo stub files for non-CGO builds - Bootstrap and embedded_uow helpers - factory_dolt_test.go and dolt_singleprocess_test.go Merge conflict resolutions: - store.go: TCP fail-fast check wrapped inside if cfg.ServerMode - store.go: backtick-quoting for embedded CREATE DATABASE (prefix-based names) - perf_dolt.go: port references updated from 3306 to 3307 - ci.yml: restored continue-on-error for Nix (dolthub/driver requires Go 1.25.6+) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Executed-By: beads/crew/emma Rig: beads Role: crew
35 lines
996 B
Go
35 lines
996 B
Go
//go:build !cgo
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var federationCmd = &cobra.Command{
|
|
Use: "federation",
|
|
GroupID: "sync",
|
|
Short: "Manage peer-to-peer federation (requires CGO)",
|
|
Long: `Federation commands require CGO and the Dolt storage backend.
|
|
|
|
This binary was built without CGO support. To use federation features:
|
|
1. Use pre-built binaries from GitHub releases, or
|
|
2. Build from source with CGO enabled
|
|
|
|
Federation enables synchronized issue tracking across multiple Gas Towns,
|
|
each maintaining their own Dolt database while sharing updates via remotes.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("Federation requires CGO and Dolt backend.")
|
|
fmt.Println("")
|
|
fmt.Println("This binary was built without CGO support. To use federation:")
|
|
fmt.Println(" 1. Download pre-built binaries from GitHub releases")
|
|
fmt.Println(" 2. Or build from source with CGO enabled")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(federationCmd)
|
|
}
|
|
|
|
|