Skip to content

Commit a1c9341

Browse files
V2 mod upgrade (#1715)
1 parent e31ff26 commit a1c9341

File tree

377 files changed

+1556
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

377 files changed

+1556
-1557
lines changed

bson/array_codec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package bson
99
import (
1010
"reflect"
1111

12-
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
12+
"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore"
1313
)
1414

1515
// arrayCodec is the Codec used for bsoncore.Array values.

bson/bson_corpus_spec_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"unicode/utf8"
2222

2323
"github.com/google/go-cmp/cmp"
24-
"go.mongodb.org/mongo-driver/internal/assert"
25-
"go.mongodb.org/mongo-driver/internal/require"
24+
"go.mongodb.org/mongo-driver/v2/internal/assert"
25+
"go.mongodb.org/mongo-driver/v2/internal/require"
2626
)
2727

2828
type testCase struct {

bson/bson_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"time"
1818

1919
"github.com/google/go-cmp/cmp"
20-
"go.mongodb.org/mongo-driver/internal/assert"
21-
"go.mongodb.org/mongo-driver/internal/require"
22-
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
20+
"go.mongodb.org/mongo-driver/v2/internal/assert"
21+
"go.mongodb.org/mongo-driver/v2/internal/require"
22+
"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore"
2323
)
2424

2525
func noerr(t *testing.T, err error) {

bson/bsonrw_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package bson
99
import (
1010
"testing"
1111

12-
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
12+
"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore"
1313
)
1414

1515
var (

bson/cond_addr_codec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"reflect"
1111
"testing"
1212

13-
"go.mongodb.org/mongo-driver/internal/assert"
13+
"go.mongodb.org/mongo-driver/v2/internal/assert"
1414
)
1515

1616
func TestCondAddrCodec(t *testing.T) {

bson/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"io"
1313

14-
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
14+
"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore"
1515
)
1616

1717
// copyDocument handles copying one document from the src to the dst.

bson/copier_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"fmt"
1313
"testing"
1414

15-
"go.mongodb.org/mongo-driver/internal/assert"
16-
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
15+
"go.mongodb.org/mongo-driver/v2/internal/assert"
16+
"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore"
1717
)
1818

1919
func TestCopier(t *testing.T) {

bson/decimal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"strconv"
1919
"strings"
2020

21-
"go.mongodb.org/mongo-driver/internal/decimal128"
21+
"go.mongodb.org/mongo-driver/v2/internal/decimal128"
2222
)
2323

2424
// These constants are the maximum and minimum values for the exponent field in a decimal128 value.

bson/decimal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"math/big"
1313
"testing"
1414

15-
"go.mongodb.org/mongo-driver/internal/assert"
16-
"go.mongodb.org/mongo-driver/internal/require"
15+
"go.mongodb.org/mongo-driver/v2/internal/assert"
16+
"go.mongodb.org/mongo-driver/v2/internal/require"
1717
)
1818

1919
type bigIntTestCase struct {

bson/decoder_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"fmt"
1414
"io"
1515

16-
"go.mongodb.org/mongo-driver/bson"
16+
"go.mongodb.org/mongo-driver/v2/bson"
1717
)
1818

1919
func ExampleDecoder() {

0 commit comments

Comments
 (0)