mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
add goroot for snap installs
This commit is contained in:
+3
-2
@@ -171,8 +171,9 @@ func getGoroot() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
candidates = []string{
|
candidates = []string{
|
||||||
"/usr/local/go", // manually installed
|
"/usr/local/go", // manually installed
|
||||||
"/usr/lib/go", // from the distribution
|
"/usr/lib/go", // from the distribution
|
||||||
|
"/snap/go/current/", // installed using snap
|
||||||
}
|
}
|
||||||
case "darwin":
|
case "darwin":
|
||||||
candidates = []string{
|
candidates = []string{
|
||||||
|
|||||||
Reference in New Issue
Block a user