Skip to content

Commit

Permalink
Fix up some naming and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Aug 31, 2021
1 parent 2e969f0 commit 08dae6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/fyne/internal/mobile/env.go
Expand Up @@ -89,7 +89,7 @@ func envInit() (err error) {
// This is because go-list tries to analyze the module at the current directory if no packages are given,
// and if the module doesn't have any Go file, go-list fails. See golang/go#36668.

buildLegacy := false
before115 := false
before116 := false
ver, err := exec.Command("go", "version").Output()
if err == nil && string(ver) != "" {
Expand All @@ -103,7 +103,7 @@ func envInit() (err error) {
// go version devel go1.18-527609d47b Wed Aug 25 17:07:58 2021 +0200 darwin/arm64
if goVer == "devel" && len(fields) >= 4 {
prefix := strings.Split(fields[3], "-")
// a go command may miss version inforamtion. If that happens
// a go command may miss version information. If that happens
// we just use the environment version.
if len(prefix) > 0 {
goVer = strings.TrimPrefix(prefix[0], "go")
Expand All @@ -112,11 +112,11 @@ func envInit() (err error) {
}
}

buildLegacy = semver.Compare("v"+goVer, "v1.15.0") < 0
before115 = semver.Compare("v"+goVer, "v1.15.0") < 0
before116 = semver.Compare("v"+goVer, "v1.16.0") < 0
}
}
if buildLegacy {
if before115 {
allArchs["ios"] = []string{"arm64", "amd64", "arm"}
}

Expand Down

0 comments on commit 08dae6d

Please sign in to comment.