mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 04:19:04 +00:00
add goroot for snap installs
This commit is contained in:
@@ -173,6 +173,7 @@ func getGoroot() string {
|
|||||||
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