import cycle between util and testutil

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.4.19, 4.0.5, 3.6.10, 4.1.7
    • Affects Version/s: None
    • Component/s: None
    • None

      from github #101:

      When building mongo-tools 3.4.6 I've got this error

      go test github.com/mongodb/mongo-tools/common/util

      1. github.com/mongodb/mongo-tools/common/util
        import cycle not allowed in test
        package github.com/mongodb/mongo-tools/common/util (test)
        imports github.com/mongodb/mongo-tools/common/testutil
        imports github.com/mongodb/mongo-tools/common/options
        imports github.com/mongodb/mongo-tools/common/util
        FAIL github.com/mongodb/mongo-tools/common/util [setup failed]
        How to fix this?

            Assignee:
            David Golden
            Reporter:
            William Banfield (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: