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: test -bench tries to use "DO NOT USE - link" as an executable #23150
Comments
Note that it doesn't happen without |
Change https://golang.org/cl/84376 mentions this issue: |
@ianlancetaylor any updates on that issue? |
I sent a change that fixes this, https://golang.org/cl/84376. @rsc has not reviewed it yet, presumably because of the holidays. I'm sorry, I'm not sure what you mean with the reference to the flags. If CL 84376 fixes the problem, then we are done. If not, there may be a separate issue. |
Sorry, @ianlancetaylor, tags, not flags :) |
Note just benchmarks. From my dup bug:
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Does not happen with 1.9 as far as I can tell.
What operating system and processor architecture are you using (
go env
)?What did you do?
I was getting cpu and memory profiles from a benchmark multiple times, to update the profiles after every change and optimization that I was doing.
I'll use the
bytes
package below to make it simple to reproduce the bug, but it happens with any package that has benchmarks as far as I can see.What did you expect to see?
go test -bench=Foo -cpuprofile=cpu.out
to work when invocated multiple times.What did you see instead?
Note that this gets fixed if I do
rm bytes.test
. Perhaps this is related to the recent build and/or test caching changes. /cc @rscThe text was updated successfully, but these errors were encountered: