Skip to content

Commit 56091f4

Browse files
committed
Change behavior if go not found
1 parent 8af5830 commit 56091f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func initBinaries() {
3838
fmt.Println("hover: Failed to lookup `go` and `docker` executable. Please install one of them:\nGo: https://golang.org/doc/install\nDocker: https://docs.docker.com/install")
3939
os.Exit(1)
4040
}
41-
if dockerAvailable && !goAvailable {
42-
fmt.Println("hover: Using Docker instead of go for compiling, because looking up `go` executable failed.")
43-
buildDocker = true
41+
if dockerAvailable && !goAvailable && !buildDocker {
42+
fmt.Println("hover: Failed to lookup `go` executable. Please install go or add '--docker' to force running in Docker container.\nhttps://golang.org/doc/install")
43+
os.Exit(1)
4444
}
4545
flutterBin, err = exec.LookPath("flutter")
4646
if err != nil {

0 commit comments

Comments
 (0)