diff options
-rw-r--r-- | goenv/goenv.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/goenv/goenv.go b/goenv/goenv.go index 9db715528..3f1352a78 100644 --- a/goenv/goenv.go +++ b/goenv/goenv.go @@ -171,8 +171,9 @@ func getGoroot() string { switch runtime.GOOS { case "linux": candidates = []string{ - "/usr/local/go", // manually installed - "/usr/lib/go", // from the distribution + "/usr/local/go", // manually installed + "/usr/lib/go", // from the distribution + "/snap/go/current/", // installed using snap } case "darwin": candidates = []string{ |