-
Notifications
You must be signed in to change notification settings - Fork 119
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
Module go download logs appearing as Errors (go v1.11) #27
Comments
What happens if you run I think what's happening is that in go 1.10 any stderr indicated an error. Now with go 1.11 there are go module downloads happening, and those lines are printed to stderr so the previous rule of "all stderr is an error" no longer works. This is unfortunate and is probably worth reporting to the go team while go modules are still in beta. As a workaround I think the stderr handler can check for a prefix match of That patch would go somewhere around here: https://github.com/gotestyourself/gotestsum/blob/master/testjson/execution.go#L320. If you are interested in submitting a PR to fix that would be awesome! |
Hey dnephin thanks for the quick response. I realised I understood what was going on completely wrong (I thought there were actual errors around downloading, but these were somehow not failing the tests...) anyway, that makes sense then. And yes when piping the json out you still get Yeah might have a quick stab at patching that then, cheers |
hey I've created the fix, do you need to give me access? cheers |
Thanks for working on a fix! To submit a Pull Request, first fork the repo, and push the change to your fork. When you do that you should be presented a link to create a PR in the output of |
Cheers for the info, and sorry for being a total noob. Shamefully the first time contributing to an open source project 🤦♂️ |
No problem! I hope that your first experience contributing to open source was a positive one! |
Yeah all good thanks :) |
I've just seen you did release, just Google Cloud Build wasn't picking that up for some reason. Ignore me 😄 |
Hey, I'm using the following command to run tests:
inside a
golang:1.11.1-stretch
docker container, and also locally (mac), and getting the following outputwhereas if I run using
go test ./api/...
I get none of the go downloading errors.We are using go modules to manage dependencies (a file called
go.mod
) contains all the required packages, could this be an issue?The text was updated successfully, but these errors were encountered: