Details
-
Improvement
-
Resolution: Unresolved
-
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:
- 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).
- 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:
- Remove it with the next Go Driver major release (currently 2.0) and direct users to update all references to the new package path.
- Create a Git submodule that references a version of the proposed "https://github.com/mongodb/go-bson" repo.
- 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.