Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
Fix: Execute version check in tempdir
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Jul 10, 2019
1 parent d8caaff commit 74624aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go.go
Expand Up @@ -187,7 +187,7 @@ func GoVersion() (string, error) {
}

// Execute and read the version, which will be the only thing on stdout.
return execGo("go", nil, "", "run", sourcePath)
return execGo("go", nil, td, "run", sourcePath)
}

// GoVersionParts parses the version numbers from the version itself
Expand Down

0 comments on commit 74624aa

Please sign in to comment.