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

Separate the Go BSON library into its own module

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    Description

      Create a new module and repository for the go.mongodb.org/mongo-driver/bson package. For example, create the "go.mongodb.org/bson" package that points to the "https://github.com/mongodb/go-bson" repository.

      The motivations for this are:

      1. More quickly improve the usability of the BSON library by separating its release schedule from the Go Driver release schedule (i.e. it enables more frequent BSON major version releases).
      2. Make the BSON library more usable by Go devs who don't use MongoDB or the Go Driver.

      Concerning the existing go.mongodb.org/mongo-driver/bson package, there are some options for what to do with it:

      1. Remove it with the next Go Driver major release (currently 2.0) and direct users to update all references to the new package path.
      2. Create a Git submodule that references a version of the proposed "https://github.com/mongodb/go-bson" repo.
      3. Manually maintain the code in the bson/ directory in the Go Driver by copying updates from the proposed "https://github.com/mongodb/go-bson" repo.

      In any case, our goal should be to eventually remove the "bson" package from the Go Driver while easing the transition to the separate module as much as possible.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: