Upgrading mongo-tools to current driver

I am using the mongo-tools package to load BSON dumps as fixtures in integration test using the mongorestore package (not CLI), and this is causing a problem for the project, because that package does not work with current versions of the mongo-driver : we need to replace the driver by version 1.11.9, which is the version currently required by the mongo-tools project.

I see that upgrading to current driver will require work since the driver has breaking changes so, before jumping into a local forked upgrade, I would like to know if MongoDB would consider a PR upgrading this driver version and what it would take beyond passing go test ./.... in the repo to have it considered.

Yay, MongoDB devs are working on such an update TOOLS-3616 Update go driver version to 1.16 by tdq45gj · Pull Request #704 · mongodb/mongo-tools · GitHub

1 Like

@Frederic-Georges_MARAND and I spoke offline, but I wanted to just note some things here for others that might be browsing.

The PR for upgrading mongo-tools to the MongoDB Go Driver 1.16.0 has been merged and will be part of the release 100.10.0: TOOLS-3616 Update go driver version to 1.16 by tdq45gj · Pull Request #704 · mongodb/mongo-tools · GitHub

I would like to know if MongoDB would consider a PR upgrading this driver version and what it would take beyond passing go test ./... . in the repo to have it considered.

As a general principle, the mongo-tools team said that they are open to PRs. Contributing guidelines are here: mongo-tools/CONTRIBUTING.md at master · mongodb/mongo-tools · GitHub

2 Likes