Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(209)

Issue 146580043: code review 146580043: cmd/go: sometimes name tmp test binary test.test.exe on... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by rsc
Modified:
10 years, 5 months ago
Reviewers:
dave, bradfitz
CC:
golang-codereviews, r, brainman, bradfitz, iant
Visibility:
Public.

Description

cmd/go: sometimes name tmp test binary test.test.exe on Windows 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 issue 8711.

Patch Set 1 #

Patch Set 2 : diff -r c1a3f7652520b16d451ce5ccbc521b88e8419c90 https://code.google.com/p/go/ #

Patch Set 3 : diff -r c1a3f7652520b16d451ce5ccbc521b88e8419c90 https://code.google.com/p/go/ #

Patch Set 4 : diff -r c1a3f7652520b16d451ce5ccbc521b88e8419c90 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M src/cmd/go/test.go View 1 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-codereviews@googlegroups.com (cc: bradfitz, brainman, iant, r), I'd like you to review this change to ...
10 years, 5 months ago (2014-09-30 18:00:29 UTC) #1
r
wow
10 years, 5 months ago (2014-09-30 18:01:53 UTC) #2
bradfitz
LGTM but strings.Contains or == ? On Tue, Sep 30, 2014 at 11:01 AM, <r@golang.org> ...
10 years, 5 months ago (2014-09-30 18:05:13 UTC) #3
rsc
On Tue, Sep 30, 2014 at 2:05 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > LGTM but ...
10 years, 5 months ago (2014-09-30 18:21:38 UTC) #4
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=15c0b9f59a61 *** cmd/go: sometimes name tmp test binary test.test.exe on Windows Right ...
10 years, 5 months ago (2014-09-30 18:30:44 UTC) #5
dave_cheney.net
10 years, 5 months ago (2014-09-30 23:41:06 UTC) #6
I second that, what a preposterous security anti feature.
On 1 Oct 2014 04:01, <r@golang.org> wrote:

> wow
>
> https://codereview.appspot.com/146580043/
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-codereviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-codereviews+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b