Skip to content
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

testing: an import cycle in a test file exposes an infinite loop in the go test command or the go cover tool #9031

gopherbot opened this issue Oct 30, 2014 · 2 comments


Copy link

gopherbot commented Oct 30, 2014

by mdwhatcott:

What does 'go version' print?

go version go1.3.3 darwin/amd64

What steps reproduce the problem?

1. go get
2. cd $GOPATH/src/
3. go test -cover

What happened? The go test command hangs indefinitely.

What should have happened instead? It should report a build failure due to an import

Please provide any additional information below.

See the file in the "" package for more

I understand that coverage information is only useful when the tests successfully
compile and execute, but in every other failure to compile, the command in step 3 above
reports the problem and exits with a non-zero return status. Why should an import cycle
not cause the same behavior?
Copy link

gopherbot commented Oct 30, 2014

Comment 1 by mdwhatcott:

Well, just realized this is a duplicate of:
Sorry! Feel free to delete this issue, unless it provides any helpful information.

Copy link

ianlancetaylor commented Oct 31, 2014

Comment 2:

Status changed to Duplicate.

Merged into issue #6872.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

2 participants