This repository was archived by the owner on Apr 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
1919"github.com/AgentGuardHQ/shellforge/internal/scheduler"
2020)
2121
22- var version = "0.4.6 "
22+ var version = "0.4.7 "
2323
2424func main () {
2525if len (os .Args ) < 2 {
@@ -275,6 +275,19 @@ fmt.Println(" Crush — Go AI coding agent with AgentGuard governance (local mo
275275fmt .Print (" Install Crush? [Y/n] " )
276276if confirm (reader ) {
277277fmt .Println (" → Installing Crush (AgentGuardHQ fork with governance)..." )
278+ // Ensure Go is installed (needed to build Crush)
279+ if _ , err := exec .LookPath ("go" ); err != nil {
280+ fmt .Println (" → Go not found — installing..." )
281+ if runtime .GOOS == "darwin" {
282+ run ("brew" , "install" , "go" )
283+ } else {
284+ run ("sh" , "-c" , "curl -fsSL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | sudo tar -C /usr/local -xz && sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go" )
285+ }
286+ if _ , err := exec .LookPath ("go" ); err != nil {
287+ fmt .Println (" ⚠ Go install failed. Install manually: brew install go" )
288+ fmt .Println (" Then re-run: shellforge setup" )
289+ }
290+ }
278291// Clone, build, and install our governed fork
279292crushDir := filepath .Join (os .TempDir (), "shellforge-crush-install" )
280293os .RemoveAll (crushDir )
You can’t perform that action at this time.
0 commit comments