Skip to content

Upgrade MongoDB driver to latest version (v2)#753

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:upgrade-mongo-driver
Jul 14, 2026
Merged

Upgrade MongoDB driver to latest version (v2)#753
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:upgrade-mongo-driver

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AMF module’s MongoDB dependency from the legacy go.mongodb.org/mongo-driver v1 module path to the v2 module path, aligning local imports and module requirements to use the v2 driver.

Changes:

  • Bump go.mongodb.org/mongo-driver dependency to go.mongodb.org/mongo-driver/v2 v2.8.0 in go.mod and update go.sum accordingly.
  • Update github.com/omec-project/util from v1.7.5 to v1.8.0 (likely to align with the mongo-driver v2 upgrade).
  • Update the local BSON import in context/db.go to the v2 module path.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
go.mod Switches MongoDB driver requirement to the v2 module path and bumps omec-project/util accordingly.
go.sum Updates checksums to reflect the new dependency graph after the driver/util upgrades.
context/db.go Updates the BSON import to go.mongodb.org/mongo-driver/v2/bson to match the new module path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gab-arrobo
gab-arrobo merged commit af68690 into omec-project:main Jul 14, 2026
12 checks passed
@gab-arrobo
gab-arrobo deleted the upgrade-mongo-driver branch July 14, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants