builder: move Go version code to goenv package

This is necessary to avoid a circular dependency in the loader (which
soon will need to read the Go version) and because it seems like a
better place anyway.
This commit is contained in:
Ayke van Laethem
2020-05-04 16:18:24 +02:00
committed by Ron Evans
parent 4918395f88
commit 2a98433c8e
5 changed files with 67 additions and 61 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func TestCompiler(t *testing.T) {
t.Run("ARM64Linux", func(t *testing.T) {
runPlatTests("aarch64--linux-gnu", matches, t)
})
goVersion, err := builder.GorootVersionString(goenv.Get("GOROOT"))
goVersion, err := goenv.GorootVersionString(goenv.Get("GOROOT"))
if err != nil {
t.Error("could not get Go version:", err)
return