Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1314

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

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

      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@mongodb.com Divjot Arora (Inactive)
            Reporter:
            omerha@protonmail.com Omer Haim
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: