Skip to content

Update bson encoding library to mongo-driver/v2#174

Merged
paulmach merged 1 commit intopaulmach:masterfrom
lukasbindreiter:master
Mar 29, 2026
Merged

Update bson encoding library to mongo-driver/v2#174
paulmach merged 1 commit intopaulmach:masterfrom
lukasbindreiter:master

Conversation

@lukasbindreiter
Copy link
Copy Markdown
Contributor

This library depends on the deprecated v1 of go.mongodb.org/mongo-driver for it's bson encoding: https://pkg.go.dev/go.mongodb.org/mongo-driver/bson

Some go get and go mod commands therefore produce a deprecation warning, prompting users to upgrade. To get rid of this warning, this PR implements the upgrade to v2 of the bson library: https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/bson

There are only two small differences that needed to be accounted for:

@paulmach
Copy link
Copy Markdown
Owner

the v2 version requires generics, I upgrade the goversion of this module from 1.15 -> 1.25 in this pr #175

Please rebase your changes

@lukasbindreiter
Copy link
Copy Markdown
Contributor Author

Just rebased, thanks for updating the go version of the module.

@paulmach paulmach merged commit 75e83f3 into paulmach:master Mar 29, 2026
2 checks passed
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