Our project includes go test files with package name foo_test in the same directory as foo, and these typically import the package to test it. goimports-reviser incorrectly thinks this is an import cycle
e.g.
agent/agent_test.go:49:2: could not import github.com/coder/coder/v2/agent (-: import cycle not allowed in test) (typecheck)
"github.com/coder/coder/v2/agent"
^
Our project includes go test files with package name
foo_test
in the same directory asfoo
, and these typically import the package to test it. goimports-reviser incorrectly thinks this is an import cyclee.g.
from https://github.com/coder/coder/blob/d04959cea8f24da12b7936f289ab0b268880a706/agent/agent_test.go#L49