This fixes test failures introduced by CL 176901.
Change-Id: I133299ba3be3a15ced076c95e4833ba6070d7eb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/176903
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
package main
import (
+ "crypto/md5"
"flag"
"fmt"
"go/build"
goarch = f[1]
}
- hello := filepath.Join(tmp, "hello.exe")
+ hash := md5.Sum([]byte(fmt.Sprintf("%v-%v", flags, printCode)))
+ hello := filepath.Join(tmp, fmt.Sprintf("hello-%x.exe", hash))
args := []string{"build", "-o", hello}
args = append(args, flags...)
args = append(args, "testdata/fmthello.go")