-
Notifications
You must be signed in to change notification settings - Fork 18k
x/vgo: broken json output in list -m -json when using replace directive #26218
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
Comments
I've just given this a try, and extra output goes to stderr. Additionally, it's not just triggered by using the |
@bcmills this picks up on what we were discussing back in https://go-review.googlesource.com/c/vgo/+/118316 Would one solution here be to add (and document?) a That said, I'm unclear if this pipe approach works on Windows... |
This is working as intended. If the minor warning chatter here exposes tools that are not handling stdout/stderr correctly, that's unfortunate but not entirely terrible. Getting them fixed will make the tools more robust overall. |
What version of Go are you using (
go version
)?vgo @ 6cd5a417451d8ee907692eded07ef1b6b53825b1
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Windows 10/amd64
What did you do?
Using the following example project: https://github.com/dlsniper/vgoawesomeProject I changed the
go.mod
file with the following contentThen I ran
vgo list -m -json all
. I would expect to only get JSON output not any extra output about the replace directives and such.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: