add goroot for snap installs

This commit is contained in:
Tobias Theel
2021-03-19 16:34:20 +01:00
committed by Ron Evans
parent bd212cc000
commit 5707022951
+3 -2
View File
@@ -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{