• Russ Cox's avatar
    cmd/go: sometimes name tmp test binary test.test.exe on Windows · c017a4e1
    Russ Cox authored
    Right now it is always pkgname.test.exe, but if pkgname is
    patch or install or setup or update, Windows thinks that
    running it will install new software, so it pops up a dialog
    box asking for more permission.
    Renaming the binary avoids the Windows security check.
    
    This only applies to the binary that the Go command writes
    to its temporary work directory. If the user runs 'go test -c'
    or any of the other ways to generate a test binary, it will
    continue to use pkgname.test.exe.
    
    Fixes #8711.
    
    LGTM=bradfitz
    R=golang-codereviews, r
    CC=alex.brainman, bradfitz, golang-codereviews, iant
    https://golang.org/cl/146580043
    c017a4e1
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
yacc Loading commit data...