Adding MongoDB GO driver dependency using Dep results in an error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running `dep` command I get the error below.

      dep ensure -add github.com/mongodb/mongo-go-driver

      Fetching sources...

      Solving failure: No versions of github.com/mongodb/mongo-go-driver met constraints:
              v0.0.2: Could not introduce github.com/mongodb/mongo-go-driver@v0.0.2, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              v0.0.1: Could not introduce github.com/mongodb/mongo-go-driver@v0.0.1, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              master: Could not introduce github.com/mongodb/mongo-go-driver@master, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              71: Could not introduce github.com/mongodb/mongo-go-driver@71, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              GODRIVER-101: Could not introduce github.com/mongodb/mongo-go-driver@GODRIVER-101, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              GODRIVER-33: Could not introduce github.com/mongodb/mongo-go-driver@GODRIVER-33, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              command-wireprotocol-redesign: Could not introduce github.com/mongodb/mongo-go-driver@command-wireprotocol-redesign, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
              meta/config: Could not introduce github.com/mongodb/mongo-go-driver@meta/config, as its subpackage github.com/mongodb/mongo-go-driver does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
      

            Assignee:
            Unassigned
            Reporter:
            Ayache Khettar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: