chore(binding): upgrade bson dependency to mongo-driver v2 (#4549)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Bob Du · committed by GitHub · parent 1b414bd · Browse files · 7 files·+8 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: Bob Du <i@bobdu.cc>
Diff stats
7 files+8 added−8 removed
- other:+8 added−8 removed
Provenance
- Commit
ba093d1- Tree
9a54a51- Author
Bob Du <i@bobdu.cc>- Committer
GitHub <noreply@github.com>- Parent
1b414bd
7 files changed+8 added−8 removed
modified:binding/binding_test.go+1 added-1 removed
19 unmodified lines20 21 "github.com/gin-gonic/gin/testdata/protoexample"22 "github.com/stretchr/testify/assert"23 "github.com/stretchr/testify/require"24- "go.mongodb.org/mongo-driver/bson"24+ "go.mongodb.org/mongo-driver/v2/bson"25 "google.golang.org/protobuf/proto"26 )27 28 type appkey struct {1406 unmodified linesmodified:binding/bson.go+1 added-1 removed
6 unmodified lines7 import (8 "io"9 "net/http"10 11- "go.mongodb.org/mongo-driver/bson"11+ "go.mongodb.org/mongo-driver/v2/bson"12 )13 14 type bsonBinding struct{}15 15 unmodified linesmodified:render/bson.go+1 added-1 removed
5 unmodified lines6 7 import (8 "net/http"9 10- "go.mongodb.org/mongo-driver/bson"10+ "go.mongodb.org/mongo-driver/v2/bson"11 )12 13 // BSON contains the given interface object.14 type BSON struct {20 unmodified linesmodified:render/render_test.go+1 added-1 removed
17 unmodified lines18 "github.com/gin-gonic/gin/codec/json"19 testdata "github.com/gin-gonic/gin/testdata/protoexample"20 "github.com/stretchr/testify/assert"21 "github.com/stretchr/testify/require"22- "go.mongodb.org/mongo-driver/bson"22+ "go.mongodb.org/mongo-driver/v2/bson"23 "google.golang.org/protobuf/proto"24 )25 26 // TODO unit tests628 unmodified linesmodified:context_test.go+1 added-1 removed
30 unmodified lines31 "github.com/gin-gonic/gin/codec/json"32 testdata "github.com/gin-gonic/gin/testdata/protoexample"33 "github.com/stretchr/testify/assert"34 "github.com/stretchr/testify/require"35- "go.mongodb.org/mongo-driver/bson"35+ "go.mongodb.org/mongo-driver/v2/bson"36 "google.golang.org/protobuf/proto"37 )38 39 var _ context.Context = (*Context)(nil)3715 unmodified linesmodified:go.mod+1 added-1 removed
15 unmodified lines16 github.com/pelletier/go-toml/v2 v2.2.417 github.com/quic-go/quic-go v0.59.018 github.com/stretchr/testify v1.11.119 github.com/ugorji/go/codec v1.3.120- go.mongodb.org/mongo-driver v1.17.920+ go.mongodb.org/mongo-driver/v2 v2.5.021 golang.org/x/net v0.50.022 google.golang.org/protobuf v1.36.1023 )24 23 unmodified linesmodified:go.sum+2 added-2 removed
69 unmodified lines70 github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=71 github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=72 github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY=73 github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4=74-go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=75-go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=74+go.mongodb.org/mongo-driver/v2 v2.5.0 h1:yXUhImUjjAInNcpTcAlPHiT7bIXhshCTL3jVBkF3xaE=75+go.mongodb.org/mongo-driver/v2 v2.5.0/go.mod h1:yOI9kBsufol30iFsl1slpdq1I0eHPzybRWdyYUs8K/0=76 go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=77 go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=78 golang.org/x/arch v0.22.0 h1:c/Zle32i5ttqRXjdLyyHZESLD/bB90DCU1g9l/0YBDI=79 golang.org/x/arch v0.22.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A=17 unmodified lines