Skip to content

Commit

Permalink
fix: only parse "go env"s stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelahman committed Dec 6, 2024
1 parent 6ac80db commit 7803df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ func fetchGoEnv() error {
out, err := exec.Command("go", "env", "-json",
// Keep in sync with [sharedCacheType.GoEnv].
"GOOS", "GOARCH", "GOMOD", "GOVERSION", "GOROOT",
).CombinedOutput()
).Output()
if err != nil {
// TODO: cover this in the tests.
fmt.Fprintf(os.Stderr, `Can't find the Go toolchain: %v
Expand Down

0 comments on commit 7803df6

Please sign in to comment.