Error cannot load go.mongodb.org/mongo-driver/mongo/bson: module go.mongodb.org/mongo-driver@latest (v1.1.1) found, but does not contain package go.mongodb.org/mongo-driver/mongo/bson

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.1.1, 1.1.0
    • Component/s: BSON
    • None
    • Environment:
      Go 1.13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Working with the basics to start a project.

      https://www.mongodb.com/blog/post/mongodb-go-driver-tutorial

      Go 1.13 using go modules.

      Once adding the BSON import I get the error:

      cannot load go.mongodb.org/mongo-driver/mongo/bson: module go.mongodb.org/mongo-driver@latest (v1.1.1) found, but does not contain package go.mongodb.org/mongo-driver/mongo/bson

       

      Tried locking the package to 1.1.0

      then run go clean -modcache

      Still fails

       

            Assignee:
            Divjot Arora (Inactive)
            Reporter:
            Omer Haim
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: