fix(build): use GT_ROOT for build error path hint

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mayor
2026-01-24 22:23:52 -08:00
committed by beads/crew/emma
parent b1e8b11948
commit 2f0f0763cc

View File

@@ -73,7 +73,9 @@ func persistentPreRun(cmd *cobra.Command, args []string) error {
if BuiltProperly == "" {
fmt.Fprintln(os.Stderr, "ERROR: This binary was built with 'go build' directly.")
fmt.Fprintln(os.Stderr, " Use 'make build' to create a properly signed binary.")
fmt.Fprintln(os.Stderr, " Run from: ~/gt/gastown/mayor/rig (or your rig's worktree)")
if gtRoot := os.Getenv("GT_ROOT"); gtRoot != "" {
fmt.Fprintf(os.Stderr, " Run from: %s\n", gtRoot)
}
os.Exit(1)
}