-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 list starts the Package.Error.Err field with a newline #36762
Comments
This appears to be on purpose: go/src/cmd/go/internal/base/base.go Lines 182 to 193 in 69660ed
I'm not sure if I agree with the logic applying to |
Just for my curiousity, is this breaking something or is it purely an aesthetic concern? |
It is just a non expected behavior. If i'm implementing a wrapper around |
Change https://golang.org/cl/210938 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. I can reproduce it with go1.14beta1
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Where empty.go is an empty file.
What did you expect to see?
What did you see instead?
There is a '\n' at the begin of the Err string.
The text was updated successfully, but these errors were encountered: