Skip to content

Commit

Permalink
upd deps
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Login <[email protected]>
  • Loading branch information
batazor committed Dec 18, 2024
1 parent f8b2bb6 commit 3a3b442
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

_ "github.com/golang-migrate/migrate/v4/database/mongodb"
"github.com/spf13/viper"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/v2/bson"
"go.mongodb.org/mongo-driver/v2/bson/primitive"
"go.mongodb.org/mongo-driver/v2/mongo"

v1 "github.com/shortlink-org/shortlink/boundaries/link/link/internal/domain/link/v1"
"github.com/shortlink-org/shortlink/boundaries/link/link/internal/infrastructure/repository/crud/mongo/dto"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mongo

import (
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/v2/mongo"

v1 "github.com/shortlink-org/shortlink/boundaries/link/link/internal/domain/link/v1"
"github.com/shortlink-org/shortlink/pkg/batch"
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/mongo/migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/golang-migrate/migrate/v4"
"github.com/golang-migrate/migrate/v4/database/mongodb"
"github.com/johejo/golang-migrate-extra/source/iofs"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/v2/mongo"

"github.com/shortlink-org/shortlink/pkg/db"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/db/mongo/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
_ "github.com/golang-migrate/migrate/v4/database/mongodb"
_ "github.com/johejo/golang-migrate-extra/source/file"
"github.com/spf13/viper"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/mongo/readpref"
"go.mongodb.org/mongo-driver/v2/mongo"
"go.mongodb.org/mongo-driver/v2/mongo/options"
"go.mongodb.org/mongo-driver/v2/mongo/readpref"
"go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo"

storeOptions "github.com/shortlink-org/shortlink/pkg/db/options"
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/mongo/type.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mongo

import (
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/v2/mongo"
)

// Config - config
Expand Down
2 changes: 1 addition & 1 deletion pkg/protoc/protoc-gen-go-orm/mongo_orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func generateMongoFile(gen *protogen.Plugin, file *protogen.File) {
printHeader(gen, g, file)

g.P("import (")
g.P("\"go.mongodb.org/mongo-driver/bson\"")
g.P("\"go.mongodb.org/mongo-driver/v2/bson\"")
g.P(")")
g.P()

Expand Down
2 changes: 1 addition & 1 deletion pkg/protoc/protoc-gen-go-orm/mongo_orm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestMongoORMGeneration(t *testing.T) {

// Examples of PostgreSQL-specific checks you might perform
expectedContents := []string{
"\"go.mongodb.org/mongo-driver/bson\"", // Check for PostgreSQL specific library import
"\"go.mongodb.org/mongo-driver/v2/bson\"", // Check for PostgreSQL specific library import
// Add more PostgreSQL-specific code snippets to check for
}

Expand Down

0 comments on commit 3a3b442

Please sign in to comment.