Browse Source

add goroot for snap installs

pull/1810/head
Tobias Theel 4 years ago
committed by Ron Evans
parent
commit
5707022951
  1. 5
      goenv/goenv.go

5
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{

Loading…
Cancel
Save