New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: "go test" accepts -test.FLAG where FLAG is any flag accepted by "go build" #18682

Open
minux opened this Issue Jan 17, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@minux
Member

minux commented Jan 17, 2017

This behavior always existed from Go 1.0.

For example:

$ go test image -test.work
WORK=/tmp/go-build271188011
ok  	image	0.361s

Is this expected? I find it quite confusing as there is no -test.work flag documented anywhere and it conflicts with user defined -test.FLAG flags. If this is WAI, we probably should document it.

@bradfitz bradfitz added this to the Go1.9 milestone Jan 19, 2017

@rsc

This comment has been minimized.

Contributor

rsc commented Jun 22, 2017

Yes, we should definitely fix this, but I think it's too late for Go 1.9.

@rsc rsc modified the milestones: Go1.10, Go1.9 Jun 22, 2017

@rsc rsc modified the milestones: Go1.10, Go1.11 Dec 1, 2017

@rsc

This comment has been minimized.

Contributor

rsc commented Apr 18, 2018

/cc @bcmills

@gopherbot gopherbot modified the milestones: Go1.11, Unplanned May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment