Investigating failures of gopls/internal/regtest/diagnostics.TestResolveImportCycles with @matloob, we discovered that gopls is not locating import cycle errors on all packages involved in an import cycle.
In go list json output, the Error field is only set for one package, but the rest can be inferred from the cycle information.
Investigating failures of
gopls/internal/regtest/diagnostics.TestResolveImportCycles
with @matloob, we discovered that gopls is not locating import cycle errors on all packages involved in an import cycle.In
go list
json output, theError
field is only set for one package, but the rest can be inferred from the cycle information.