My Development environment is quite restrictive and is behind a proxy, My main.go builds and runs successfully but the test_main.go fails with a fail to compile error (even with -v, this is all i get). Could the proxy be blocking the test from pulling a mod from Golang’s peroxided repository thus throwing the error? My main problem is trying to figure the root cause of the failure. The internet has not been a lot of help since the environment is so “non-standard” (by the way this all works in an open development environment.) I guess What I’m asking is how do I get more granular failure info so I can troubleshoot the blockage?
Tried using:
go test -cover
and
go test -v
Both yield
mymodule: cannot compile Go 1.22 code
FAIL mymodule [build failed]
Johnny J. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.