Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: TestScript use of localhost GOPROXY failing on Windows, now skipped #26457
cmd/go's tests start an HTTP server by doing net.Listen("tcp", "localhost:0") and then try to make URLs using l.Addr().String(), which ends up being
This worked for some tests but somehow is failing when run as part of TestScript, as of CL 124697.
The trybots failed on that CL and the gomote failed too when run by hand. I submitted it anyway to see if the builders were any different, since it is so mysterious. I expect them to fail too. If they do I will skip those scripts on Windows.
We need to turn the script tests back on for Windows before the release.
I also tried using [::1]:0 instead of localhost:0 and it did not help.
I agree. Russ's error looks similar to #25210. I did not investigate this bug (I do not have Windows PC near by), but Brad's problem was that he created Windows process with no environment variables. Generally you cannot do that. You should copy your current process variables and add / delete / modify whatever variables you want.