-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: fmt suggests -buildvcs when it doesn't take build flags #52333
Comments
This will be solved by #51748 in Go 1.18.2, but I agree that it's unexpected that |
Will the fix be backported? Ultimately that doesn't actually matter to me unless backporting would happen sooner than the 18.2 release. Otherwise I'd just upgrade. But still curious. |
Given that 1.18.1 is out, 1.18.2 is the soonest release it can be in. Backport issue is #51798 |
Well that's about changing build behavior, right? With |
Right, this seems like a regression bug. I imagine 1.18.2 will be out sometime over the next week; it's already been four weeks since 1.18 and usually there would have been a bugfix release two weeks ago. I think keeping this issue open is worthwhile because it's not a dupliate; as already stated, there's presumably no reason for |
Ah, you're right. 1.18.1 was announced as a security release, so I assumed it only contained security fixes, but it doesn't. |
I didn't check 1.18.1 - didn't realize that existed when I wrote the example. I'll check that out and close the issue if it's resolved in the newest release. (or should I leave it open for tracking backport?) |
1.18.1 doesn't have this problem |
What version of Go are you using (
go version
)?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?
What did you expect to see?
What did you see instead?
Note that this error message is incorrect as neither
go
norgo fmt
accept the-buildvcs
flag. Also note thatGOVCS
is set to*:off
.The text was updated successfully, but these errors were encountered: