Closed
Description
% cd go/src/internal/godebug
% echo 'package godebug; import _ "testing"' >g_test.go
% go test
# internal/godebug
package internal/godebug
imports math/rand
imports testing: import cycle not allowed in test
FAIL internal/godebug [setup failed]
%
The error is incorrect (the imports it reports are reversed from reality) and incomplete (it doesn't complete the cycle). It should say something like:
package internal/godebug
imports testing
imports math/rand
imports internal/godebug: import cycle not allowed in test
FAIL internal/godebug [setup failed]