Skip to content

Closes #86 - upgraded to go.mongodb.org/mongo-driver/v2@2.5.0, Go 1.26.0#87

Merged
petruki merged 1 commit intomasterfrom
patch_86
Feb 13, 2026
Merged

Closes #86 - upgraded to go.mongodb.org/mongo-driver/v2@2.5.0, Go 1.26.0#87
petruki merged 1 commit intomasterfrom
patch_86

Conversation

@petruki
Copy link
Member

@petruki petruki commented Feb 13, 2026

This pull request updates the project to use Go 1.26.0 and upgrades several dependencies, most notably the MongoDB driver to v2. The changes ensure compatibility with the latest Go and MongoDB driver versions, and update related code and workflows accordingly.

Dependency and language updates:

  • Updated the Go version from 1.25.7 to 1.26.0 across the codebase, including Dockerfile, .devcontainer/Dockerfile, GitHub Actions workflows, and go.mod. [1] [2] [3] [4] [5] [6] [7]
  • Upgraded the MongoDB Go driver from go.mongodb.org/mongo-driver v1 to go.mongodb.org/mongo-driver/v2 in go.mod and updated all related imports and usage in the codebase. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated other dependencies in go.mod, including github.com/go-git/go-git/v5, github.com/klauspost/compress, and several golang.org/x/* libraries. [1] [2] [3]

MongoDB driver migration:

  • Refactored all code using the MongoDB driver to use the new v2 package and types, including changes from primitive.ObjectID to bson.ObjectID, and updated filter types from primitive.M to bson.M. [1] [2] [3] [4] [5] [6] [7]
  • Updated database connection logic to match the new driver API, such as removing the explicit context from mongo.Connect.

These updates modernize the codebase, improve compatibility with the latest Go and MongoDB releases, and ensure ongoing support and security.

@petruki petruki self-assigned this Feb 13, 2026
@sonarqubecloud
Copy link

@petruki petruki merged commit e5efd73 into master Feb 13, 2026
5 checks passed
@petruki petruki deleted the patch_86 branch February 13, 2026 05:02
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.

1 participant