-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 -buildvcs=true does not include vcs information #52648
Comments
I agree that the VCS information should not be included by default. But if you specifically add |
I suppose that now that we have |
I'd like to see consistency in behavior across the different I wouldn't want to see us end up in a scenario like this:
|
I think it’s fine for go test to default to omitting and go run to disallow it, but it should error out if you request an impossible option. |
Change https://go.dev/cl/409177 mentions this issue: |
@gopherbot, please backport to Go 1.18. The requested |
Backport issue(s) opened: #53177 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
If this invalidates the test cache after every git commit, this sounds like a really bad idea to me. What real world use case would be enabled by this behaviour? |
Testing that your binary contains build information. Most people should have it set to auto or off most of the time. What’s the problem with slow builds for people who deliberately turn it on? |
With respect to backports, what's the status of this bug/fix? |
The backport is waiting on a bit of soak time. (The need for soak time is why it didn't make 1.19 as well.) |
What version of Go are you using (
go version
)?go version go1.18.1 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
go test -buildvcs=true .
What did you expect to see?
Have debug.ReadBuildInfo() include vcs information.
What did you see instead?
Information was not included.
Compare #52338, cc @bcmills
The text was updated successfully, but these errors were encountered: