diff --git a/.errcheck-excludes b/.errcheck-excludes index 107ffecf99..65dc85e566 100644 --- a/.errcheck-excludes +++ b/.errcheck-excludes @@ -1,11 +1,11 @@ -(*github.com/mongodb/mongo-go-driver/x/network/connection.connection).Close -(github.com/mongodb/mongo-go-driver/x/network/connection.Connection).Close -(*github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.Subscription).Unsubscribe -(*github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.Server).Close -(*github.com/mongodb/mongo-go-driver/x/network/connection.pool).closeConnection -(github.com/mongodb/mongo-go-driver/x/network/wiremessage.ReadWriteCloser).Close -(*github.com/mongodb/mongo-go-driver/mongo.Cursor).Close -(*github.com/mongodb/mongo-go-driver/mongo.ChangeStream).Close +(*go.mongodb.org/mongo-driver/x/network/connection.connection).Close +(go.mongodb.org/mongo-driver/x/network/connection.Connection).Close +(*go.mongodb.org/mongo-driver/x/mongo/driver/topology.Subscription).Unsubscribe +(*go.mongodb.org/mongo-driver/x/mongo/driver/topology.Server).Close +(*go.mongodb.org/mongo-driver/x/network/connection.pool).closeConnection +(go.mongodb.org/mongo-driver/x/network/wiremessage.ReadWriteCloser).Close +(*go.mongodb.org/mongo-driver/mongo.Cursor).Close +(*go.mongodb.org/mongo-driver/mongo.ChangeStream).Close (net.Conn).Close encoding/pem.Encode fmt.Fprintf diff --git a/.evergreen/config.yml b/.evergreen/config.yml index bba275a268..5517a66244 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -29,16 +29,16 @@ functions: - command: git.get_project type: system params: - directory: src/github.com/mongodb/mongo-go-driver + directory: src/go.mongodb.org/mongo-driver # Make an evergreen expansion file with dynamic values - command: shell.exec params: - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | if [ "Windows_NT" = "$OS" ]; then - export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`))))) + export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) else - export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`)))) + export GOPATH=$(dirname $(dirname $(dirname `pwd`))) fi; # Get the current unique version of this checkout @@ -64,8 +64,8 @@ functions: export PROJECT="${project}" if [ "Windows_NT" = "$OS" ]; then - export USERPROFILE=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`))))) - export HOME=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`))))) + export USERPROFILE=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) + export HOME=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) fi go version @@ -97,7 +97,7 @@ functions: # Load the expansion file to make an evergreen variable with the current unique version - command: expansions.update params: - file: src/github.com/mongodb/mongo-go-driver/expansion.yml + file: src/go.mongodb.org/mongo-driver/expansion.yml prepare-resources: @@ -115,7 +115,7 @@ functions: echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config - command: shell.exec params: - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | ${PREPARE_SHELL} # any go tools that we need @@ -216,7 +216,7 @@ functions: - command: shell.exec type: test params: - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | ${PREPARE_SHELL} ${BUILD_ENV|} make ${targets} BUILD_TAGS="-tags gssapi" @@ -226,7 +226,7 @@ functions: - command: shell.exec type: test params: - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | ${PREPARE_SHELL} @@ -245,7 +245,7 @@ functions: - command: json.send params: name: perf - file: src/github.com/mongodb/mongo-go-driver/perf.json + file: src/go.mongodb.org/mongo-driver/perf.json run-enterprise-auth-tests: @@ -253,13 +253,13 @@ functions: type: test params: silent: true - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) if [ "Windows_NT" = "$OS" ]; then - export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`))))) + export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) else - export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`)))) + export GOPATH=$(dirname $(dirname $(dirname `pwd`))) fi; export GOPATH="$GOPATH" export GOROOT="${GO_DIST}" @@ -271,14 +271,14 @@ functions: type: test params: silent: true - working_dir: src/github.com/mongodb/mongo-go-driver + working_dir: src/go.mongodb.org/mongo-driver script: | # DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does) if [ "Windows_NT" = "$OS" ]; then - export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`))))) + export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) export MONGODB_URI=${gssapi_auth_windows_mongodb_uri} else - export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`)))) + export GOPATH=$(dirname $(dirname $(dirname `pwd`))) echo "${gssapi_auth_linux_keytab_base64}" > /tmp/drivers.keytab.base64 base64 --decode /tmp/drivers.keytab.base64 > ${PROJECT_DIRECTORY}/.evergreen/drivers.keytab mkdir -p ~/.krb5 @@ -302,7 +302,7 @@ post: - command: gotest.parse_files params: files: - - "src/github.com/mongodb/mongo-go-driver/*.suite" + - "src/go.mongodb.org/mongo-driver/*.suite" - func: upload-mo-artifacts - func: cleanup diff --git a/README.md b/README.md index aadab3957d..b64ef50066 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

- - GoDoc - GoDoc + + GoDoc + GoDoc

@@ -31,7 +31,7 @@ The MongoDB supported driver for Go. The recommended way to get started using the MongoDB Go driver is by using `dep` to install the dependency in your project. ```bash -dep ensure -add github.com/mongodb/mongo-go-driver/mongo +dep ensure -add go.mongodb.org/mongo-driver/mongo ``` ------------------------- @@ -40,7 +40,7 @@ dep ensure -add github.com/mongodb/mongo-go-driver/mongo To get started with the driver, import the `mongo` package, create a `mongo.Client`: ```go -import "github.com/mongodb/mongo-go-driver/mongo" +import "go.mongodb.org/mongo-driver/mongo" client, err := mongo.NewClient(options.Client().ApplyURI("mongodb://localhost:27017")) ``` diff --git a/benchmark/bson.go b/benchmark/bson.go index 89a3c8288d..e5de5fb7b0 100644 --- a/benchmark/bson.go +++ b/benchmark/bson.go @@ -11,8 +11,8 @@ import ( "io/ioutil" "path/filepath" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" ) const ( diff --git a/benchmark/bson_document.go b/benchmark/bson_document.go index dd0a5791a4..02c18420d4 100644 --- a/benchmark/bson_document.go +++ b/benchmark/bson_document.go @@ -10,7 +10,7 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" ) func bsonDocumentEncoding(ctx context.Context, tm TimerManager, iters int, source string) error { diff --git a/benchmark/bson_map.go b/benchmark/bson_map.go index 27549814a8..164827efe3 100644 --- a/benchmark/bson_map.go +++ b/benchmark/bson_map.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) func bsonMapDecoding(ctx context.Context, tm TimerManager, iters int, dataSet string) error { diff --git a/benchmark/bson_struct.go b/benchmark/bson_struct.go index 4848f00adb..12ec49333d 100644 --- a/benchmark/bson_struct.go +++ b/benchmark/bson_struct.go @@ -10,7 +10,7 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) func BSONFlatStructDecoding(ctx context.Context, tm TimerManager, iters int) error { diff --git a/benchmark/bson_types.go b/benchmark/bson_types.go index 167ba9688b..9d46cbcb03 100644 --- a/benchmark/bson_types.go +++ b/benchmark/bson_types.go @@ -6,7 +6,7 @@ package benchmark -import "github.com/mongodb/mongo-go-driver/bson/primitive" +import "go.mongodb.org/mongo-driver/bson/primitive" type flatBSONTags struct { ID primitive.ObjectID `bson:"_id"` diff --git a/benchmark/harness.go b/benchmark/harness.go index 0eee2dc14e..5eb8afd22a 100644 --- a/benchmark/harness.go +++ b/benchmark/harness.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package benchmark +package benchmark // import "go.mongodb.org/mongo-driver/benchmark" import ( "context" diff --git a/benchmark/multi.go b/benchmark/multi.go index 91b321b990..1a4faaa98e 100644 --- a/benchmark/multi.go +++ b/benchmark/multi.go @@ -10,7 +10,7 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" ) func MultiFindMany(ctx context.Context, tm TimerManager, iters int) error { diff --git a/benchmark/single.go b/benchmark/single.go index 32677114dd..86e8e79179 100644 --- a/benchmark/single.go +++ b/benchmark/single.go @@ -10,10 +10,10 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) const ( diff --git a/bson/bson.go b/bson/bson.go index 44cdec8917..37bf9811f3 100644 --- a/bson/bson.go +++ b/bson/bson.go @@ -9,10 +9,10 @@ // +build go1.9 -package bson +package bson // import "go.mongodb.org/mongo-driver/bson" import ( - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/primitive" ) // Zeroer allows custom struct types to implement a report of zero diff --git a/bson/bson_1_8.go b/bson/bson_1_8.go index beac40bd96..caf5f50a71 100644 --- a/bson/bson_1_8.go +++ b/bson/bson_1_8.go @@ -6,7 +6,7 @@ // +build !go1.9 -package bson +package bson // import "go.mongodb.org/mongo-driver/bson" import ( "math" diff --git a/bson/bson_corpus_spec_test.go b/bson/bson_corpus_spec_test.go index 93cb5ddc78..1bc3f160df 100644 --- a/bson/bson_corpus_spec_test.go +++ b/bson/bson_corpus_spec_test.go @@ -20,10 +20,10 @@ import ( "unicode/utf8" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" "github.com/stretchr/testify/require" "github.com/tidwall/pretty" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" ) type testCase struct { diff --git a/bson/bson_test.go b/bson/bson_test.go index 9ba3d2caa8..a2f572639d 100644 --- a/bson/bson_test.go +++ b/bson/bson_test.go @@ -12,8 +12,8 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func noerr(t *testing.T, err error) { diff --git a/bson/bsoncodec/bsoncodec.go b/bson/bsoncodec/bsoncodec.go index 4c5530c4ba..0ebc9a1564 100644 --- a/bson/bsoncodec/bsoncodec.go +++ b/bson/bsoncodec/bsoncodec.go @@ -4,15 +4,15 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package bsoncodec +package bsoncodec // import "go.mongodb.org/mongo-driver/bson/bsoncodec" import ( "fmt" "reflect" "strings" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // Marshaler is an interface implemented by types that can marshal themselves diff --git a/bson/bsoncodec/bsoncodec_test.go b/bson/bsoncodec/bsoncodec_test.go index 9033b0cca1..862e703bb6 100644 --- a/bson/bsoncodec/bsoncodec_test.go +++ b/bson/bsoncodec/bsoncodec_test.go @@ -11,9 +11,9 @@ import ( "reflect" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func ExampleValueEncoder() { diff --git a/bson/bsoncodec/default_value_decoders.go b/bson/bsoncodec/default_value_decoders.go index 645f89e991..f39023075b 100644 --- a/bson/bsoncodec/default_value_decoders.go +++ b/bson/bsoncodec/default_value_decoders.go @@ -16,10 +16,10 @@ import ( "strconv" "time" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) var defaultValueDecoders DefaultValueDecoders diff --git a/bson/bsoncodec/default_value_decoders_test.go b/bson/bsoncodec/default_value_decoders_test.go index 8d94568aa4..4523cf4484 100644 --- a/bson/bsoncodec/default_value_decoders_test.go +++ b/bson/bsoncodec/default_value_decoders_test.go @@ -18,11 +18,11 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestDefaultValueDecoders(t *testing.T) { diff --git a/bson/bsoncodec/default_value_encoders.go b/bson/bsoncodec/default_value_encoders.go index 61295bd6c1..39ebfc7ecd 100644 --- a/bson/bsoncodec/default_value_encoders.go +++ b/bson/bsoncodec/default_value_encoders.go @@ -16,10 +16,10 @@ import ( "sync" "time" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) var defaultValueEncoders DefaultValueEncoders diff --git a/bson/bsoncodec/default_value_encoders_test.go b/bson/bsoncodec/default_value_encoders_test.go index 97fdfba8b3..bd74c452ca 100644 --- a/bson/bsoncodec/default_value_encoders_test.go +++ b/bson/bsoncodec/default_value_encoders_test.go @@ -16,11 +16,11 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" "math" ) diff --git a/bson/bsoncodec/pointer_codec.go b/bson/bsoncodec/pointer_codec.go index b78ec0a107..0d9502f214 100644 --- a/bson/bsoncodec/pointer_codec.go +++ b/bson/bsoncodec/pointer_codec.go @@ -10,8 +10,8 @@ import ( "reflect" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) var defaultPointerCodec = &PointerCodec{ diff --git a/bson/bsoncodec/registry.go b/bson/bsoncodec/registry.go index 741deb8c24..42e362b6ad 100644 --- a/bson/bsoncodec/registry.go +++ b/bson/bsoncodec/registry.go @@ -11,7 +11,7 @@ import ( "reflect" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // ErrNilType is returned when nil is passed to either LookupEncoder or LookupDecoder. diff --git a/bson/bsoncodec/registry_test.go b/bson/bsoncodec/registry_test.go index 56f527a2a9..3c71811fc8 100644 --- a/bson/bsoncodec/registry_test.go +++ b/bson/bsoncodec/registry_test.go @@ -11,8 +11,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) func TestRegistry(t *testing.T) { diff --git a/bson/bsoncodec/struct_codec.go b/bson/bsoncodec/struct_codec.go index a6339840bc..fe90272c06 100644 --- a/bson/bsoncodec/struct_codec.go +++ b/bson/bsoncodec/struct_codec.go @@ -12,8 +12,8 @@ import ( "reflect" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) var defaultStructCodec = &StructCodec{ diff --git a/bson/bsoncodec/types.go b/bson/bsoncodec/types.go index c349a94476..77264876aa 100644 --- a/bson/bsoncodec/types.go +++ b/bson/bsoncodec/types.go @@ -12,8 +12,8 @@ import ( "reflect" "time" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) var ptBool = reflect.TypeOf((*bool)(nil)) diff --git a/bson/bsonrw/bsonrwtest/bsonrwtest.go b/bson/bsonrw/bsonrwtest/bsonrwtest.go index ff27588031..bbb2570daf 100644 --- a/bson/bsonrw/bsonrwtest/bsonrwtest.go +++ b/bson/bsonrw/bsonrwtest/bsonrwtest.go @@ -4,15 +4,15 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package bsonrwtest +package bsonrwtest // import "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" import ( "testing" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) var _ bsonrw.ValueReader = (*ValueReaderWriter)(nil) diff --git a/bson/bsonrw/copier.go b/bson/bsonrw/copier.go index e01a650adc..02e3a7e3d0 100644 --- a/bson/bsonrw/copier.go +++ b/bson/bsonrw/copier.go @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // Copier is a type that allows copying between ValueReaders, ValueWriters, and diff --git a/bson/bsonrw/copier_test.go b/bson/bsonrw/copier_test.go index 4fb57754bb..84e0a800cc 100644 --- a/bson/bsonrw/copier_test.go +++ b/bson/bsonrw/copier_test.go @@ -12,9 +12,9 @@ import ( "fmt" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestCopier(t *testing.T) { diff --git a/bson/bsonrw/doc.go b/bson/bsonrw/doc.go index 21f24b0f7e..750b0d2af5 100644 --- a/bson/bsonrw/doc.go +++ b/bson/bsonrw/doc.go @@ -6,4 +6,4 @@ // Package bsonrw contains abstractions for reading and writing // BSON and BSON like types from sources. -package bsonrw +package bsonrw // import "go.mongodb.org/mongo-driver/bson/bsonrw" diff --git a/bson/bsonrw/extjson_parser.go b/bson/bsonrw/extjson_parser.go index 3054cd821f..9e223edf9d 100644 --- a/bson/bsonrw/extjson_parser.go +++ b/bson/bsonrw/extjson_parser.go @@ -11,7 +11,7 @@ import ( "fmt" "io" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) const maxNestingDepth = 200 diff --git a/bson/bsonrw/extjson_parser_test.go b/bson/bsonrw/extjson_parser_test.go index fb91b73547..c0a8e38c16 100644 --- a/bson/bsonrw/extjson_parser_test.go +++ b/bson/bsonrw/extjson_parser_test.go @@ -12,7 +12,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) var ( diff --git a/bson/bsonrw/extjson_reader.go b/bson/bsonrw/extjson_reader.go index eebd56ebc5..dd560c96f6 100644 --- a/bson/bsonrw/extjson_reader.go +++ b/bson/bsonrw/extjson_reader.go @@ -11,8 +11,8 @@ import ( "io" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // ExtJSONValueReaderPool is a pool for ValueReaders that read ExtJSON. diff --git a/bson/bsonrw/extjson_reader_test.go b/bson/bsonrw/extjson_reader_test.go index 7934c7b3ab..8a9f0cc24d 100644 --- a/bson/bsonrw/extjson_reader_test.go +++ b/bson/bsonrw/extjson_reader_test.go @@ -13,7 +13,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) func TestExtJSONReader(t *testing.T) { diff --git a/bson/bsonrw/extjson_wrappers.go b/bson/bsonrw/extjson_wrappers.go index 196662ca03..98135d9b9c 100644 --- a/bson/bsonrw/extjson_wrappers.go +++ b/bson/bsonrw/extjson_wrappers.go @@ -14,8 +14,8 @@ import ( "strconv" "time" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func wrapperKeyBSONType(key string) bsontype.Type { diff --git a/bson/bsonrw/extjson_writer.go b/bson/bsonrw/extjson_writer.go index 04fbb56ebb..b34b937379 100644 --- a/bson/bsonrw/extjson_writer.go +++ b/bson/bsonrw/extjson_writer.go @@ -10,7 +10,7 @@ import ( "bytes" "encoding/base64" "fmt" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/primitive" "io" "math" "sort" diff --git a/bson/bsonrw/extjson_writer_test.go b/bson/bsonrw/extjson_writer_test.go index a186b7b565..2330f53766 100644 --- a/bson/bsonrw/extjson_writer_test.go +++ b/bson/bsonrw/extjson_writer_test.go @@ -13,8 +13,8 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func TestExtJSONValueWriter(t *testing.T) { diff --git a/bson/bsonrw/reader.go b/bson/bsonrw/reader.go index ecae7391d5..0b8fa28d57 100644 --- a/bson/bsonrw/reader.go +++ b/bson/bsonrw/reader.go @@ -7,8 +7,8 @@ package bsonrw import ( - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // ArrayReader is implemented by types that allow reading values from a BSON diff --git a/bson/bsonrw/value_reader.go b/bson/bsonrw/value_reader.go index 5fc0d8a07a..e113a21760 100644 --- a/bson/bsonrw/value_reader.go +++ b/bson/bsonrw/value_reader.go @@ -16,8 +16,8 @@ import ( "sync" "unicode" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) var _ ValueReader = (*valueReader)(nil) diff --git a/bson/bsonrw/value_reader_test.go b/bson/bsonrw/value_reader_test.go index 3461f2759f..d3e2e49b54 100644 --- a/bson/bsonrw/value_reader_test.go +++ b/bson/bsonrw/value_reader_test.go @@ -14,9 +14,9 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestValueReader(t *testing.T) { diff --git a/bson/bsonrw/value_reader_writer_test.go b/bson/bsonrw/value_reader_writer_test.go index bc253d0f12..5723d92b81 100644 --- a/bson/bsonrw/value_reader_writer_test.go +++ b/bson/bsonrw/value_reader_writer_test.go @@ -9,9 +9,9 @@ package bsonrw import ( "testing" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) type VRWInvoked byte diff --git a/bson/bsonrw/value_writer.go b/bson/bsonrw/value_writer.go index 2400baceac..caa6fae3aa 100644 --- a/bson/bsonrw/value_writer.go +++ b/bson/bsonrw/value_writer.go @@ -14,9 +14,9 @@ import ( "strconv" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) var _ ValueWriter = (*valueWriter)(nil) diff --git a/bson/bsonrw/value_writer_test.go b/bson/bsonrw/value_writer_test.go index b97cfcf32f..ee915e41b4 100644 --- a/bson/bsonrw/value_writer_test.go +++ b/bson/bsonrw/value_writer_test.go @@ -16,9 +16,9 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestNewBSONValueWriter(t *testing.T) { diff --git a/bson/bsonrw/writer.go b/bson/bsonrw/writer.go index 6ae432280d..128b79bdfa 100644 --- a/bson/bsonrw/writer.go +++ b/bson/bsonrw/writer.go @@ -7,8 +7,8 @@ package bsonrw import ( - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // ArrayWriter is the interface used to create a BSON or BSON adjacent array. diff --git a/bson/bsontype/bsontype.go b/bson/bsontype/bsontype.go index a17e5f5198..e76403a67f 100644 --- a/bson/bsontype/bsontype.go +++ b/bson/bsontype/bsontype.go @@ -6,7 +6,7 @@ // Package bsontype is a utility package that contains types for each BSON type and the // a stringifier for the Type to enable easier debugging when working with BSON. -package bsontype +package bsontype // import "go.mongodb.org/mongo-driver/bson/bsontype" // These constants uniquely refer to each BSON type. const ( diff --git a/bson/decoder.go b/bson/decoder.go index 03c86a122a..36fb4f8dbd 100644 --- a/bson/decoder.go +++ b/bson/decoder.go @@ -12,8 +12,8 @@ import ( "reflect" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" ) // This pool is used to keep the allocations of Decoders down. This is only used for the Marshal* diff --git a/bson/decoder_test.go b/bson/decoder_test.go index c1bd182489..111db47656 100644 --- a/bson/decoder_test.go +++ b/bson/decoder_test.go @@ -13,11 +13,11 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestBasicDecode(t *testing.T) { diff --git a/bson/encoder.go b/bson/encoder.go index 3c40425014..fe5125d086 100644 --- a/bson/encoder.go +++ b/bson/encoder.go @@ -11,8 +11,8 @@ import ( "reflect" "sync" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" ) // This pool is used to keep the allocations of Encoders down. This is only used for the Marshal* diff --git a/bson/encoder_test.go b/bson/encoder_test.go index 6ecea1b9e6..695f4f0a7d 100644 --- a/bson/encoder_test.go +++ b/bson/encoder_test.go @@ -12,9 +12,9 @@ import ( "reflect" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" ) func TestBasicEncode(t *testing.T) { diff --git a/bson/marshal.go b/bson/marshal.go index 398fb63da6..9a4e28d4b9 100644 --- a/bson/marshal.go +++ b/bson/marshal.go @@ -7,9 +7,9 @@ package bson import ( - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) const defaultDstCap = 256 diff --git a/bson/marshal_test.go b/bson/marshal_test.go index b0fadb8d1a..f75be05ea3 100644 --- a/bson/marshal_test.go +++ b/bson/marshal_test.go @@ -11,9 +11,9 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/primitive" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/primitive" ) func TestMarshalAppendWithRegistry(t *testing.T) { diff --git a/bson/marshaling_cases_test.go b/bson/marshaling_cases_test.go index cfae80e18f..4ed95d6759 100644 --- a/bson/marshaling_cases_test.go +++ b/bson/marshaling_cases_test.go @@ -7,7 +7,7 @@ package bson import ( - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsoncodec" ) type marshalingTestCase struct { diff --git a/bson/primitive/primitive.go b/bson/primitive/primitive.go index b9b43f48ef..95e1bb3781 100644 --- a/bson/primitive/primitive.go +++ b/bson/primitive/primitive.go @@ -6,7 +6,7 @@ // Package primitive contains types similar to Go primitives for BSON types can do not have direct // Go primitive representations. -package primitive +package primitive // import "go.mongodb.org/mongo-driver/bson/primitive" import ( "bytes" diff --git a/bson/primitive_codecs.go b/bson/primitive_codecs.go index 6536b2e12f..1dae2fc6f8 100644 --- a/bson/primitive_codecs.go +++ b/bson/primitive_codecs.go @@ -10,8 +10,8 @@ import ( "errors" "reflect" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" ) var primitiveCodecs PrimitiveCodecs diff --git a/bson/primitive_codecs_test.go b/bson/primitive_codecs_test.go index 9eda5d61a5..110e7cc898 100644 --- a/bson/primitive_codecs_test.go +++ b/bson/primitive_codecs_test.go @@ -17,12 +17,12 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func bytesFromDoc(doc interface{}) []byte { diff --git a/bson/raw.go b/bson/raw.go index abd6e38e41..2aae9f56ab 100644 --- a/bson/raw.go +++ b/bson/raw.go @@ -10,7 +10,7 @@ import ( "errors" "io" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ErrNilReader indicates that an operation was attempted on a nil bson.Reader. diff --git a/bson/raw_element.go b/bson/raw_element.go index 2a01390bfd..006f503a30 100644 --- a/bson/raw_element.go +++ b/bson/raw_element.go @@ -7,7 +7,7 @@ package bson import ( - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // RawElement represents a BSON element in byte form. This type provides a simple way to diff --git a/bson/raw_test.go b/bson/raw_test.go index 86e7dada41..6464b8ea9e 100644 --- a/bson/raw_test.go +++ b/bson/raw_test.go @@ -14,9 +14,9 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func ExampleRaw_Validate() { diff --git a/bson/raw_value.go b/bson/raw_value.go index 2803b80bc3..d59afcfe54 100644 --- a/bson/raw_value.go +++ b/bson/raw_value.go @@ -13,11 +13,11 @@ import ( "reflect" "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ErrNilContext is returned when the provided DecodeContext is nil. diff --git a/bson/raw_value_test.go b/bson/raw_value_test.go index 344798b090..fbc0715600 100644 --- a/bson/raw_value_test.go +++ b/bson/raw_value_test.go @@ -11,9 +11,9 @@ import ( "reflect" "testing" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestRawValue(t *testing.T) { diff --git a/bson/registry.go b/bson/registry.go index c9ef029d56..09062d2085 100644 --- a/bson/registry.go +++ b/bson/registry.go @@ -6,7 +6,7 @@ package bson -import "github.com/mongodb/mongo-go-driver/bson/bsoncodec" +import "go.mongodb.org/mongo-driver/bson/bsoncodec" // DefaultRegistry is the default bsoncodec.Registry. It contains the default codecs and the // primitive codecs. diff --git a/bson/types.go b/bson/types.go index 7109254619..bf91f691ad 100644 --- a/bson/types.go +++ b/bson/types.go @@ -10,8 +10,8 @@ import ( "reflect" "time" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // These constants uniquely refer to each BSON type. diff --git a/bson/unmarshal.go b/bson/unmarshal.go index 2b3cca8448..6f9ca04d3c 100644 --- a/bson/unmarshal.go +++ b/bson/unmarshal.go @@ -9,9 +9,9 @@ package bson import ( "bytes" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // Unmarshaler is an interface implemented by types that can unmarshal a BSON diff --git a/bson/unmarshal_test.go b/bson/unmarshal_test.go index f58f59b3bb..3a46516d1e 100644 --- a/bson/unmarshal_test.go +++ b/bson/unmarshal_test.go @@ -11,8 +11,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" ) func TestUnmarshal(t *testing.T) { diff --git a/bson/unmarshaling_cases_test.go b/bson/unmarshaling_cases_test.go index d0a3dc70f8..34e53006ed 100644 --- a/bson/unmarshaling_cases_test.go +++ b/bson/unmarshaling_cases_test.go @@ -9,7 +9,7 @@ package bson import ( "reflect" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsoncodec" ) type unmarshalingTestCase struct { diff --git a/cmd/docbuilder/main.go b/cmd/docbuilder/main.go new file mode 100644 index 0000000000..b9feeb2c3a --- /dev/null +++ b/cmd/docbuilder/main.go @@ -0,0 +1,92 @@ +package main + +import ( + "flag" + "fmt" + "html/template" + "log" + "os" + "path/filepath" + "strings" + + "golang.org/x/tools/go/packages" +) + +var tmpl = ` + + + + + + + + Redirecting to docs... + + +` + +func main() { + var directory = "." + var destination = "s3-website" + fs := flag.NewFlagSet("", flag.ExitOnError) + fs.Usage = func() { + fmt.Fprintln(fs.Output(), "docbuilder is used to create the static site for the import paths for go.mongodb.org.") + fmt.Fprintln(fs.Output(), "usage: docbuilder [flags] [destination]") + fs.PrintDefaults() + } + fs.StringVar(&directory, "directory", ".", "directory to run docbuilder on") + err := fs.Parse(os.Args[1:]) + if err == flag.ErrHelp { + fs.Usage() + os.Exit(0) + } + if err != nil { + log.Fatalf("Could not parse flags: %v", err) + } + + args := fs.Args() + if len(args) > 0 { + destination = args[1] + } + + pkgs, err := packages.Load(&packages.Config{Dir: directory}, "./...") + if err != nil { + log.Fatalf("Could not load packages: %v", err) + } + + dirs := make([]string, 1, len(pkgs)+1) + for _, pkg := range pkgs { + if !strings.HasPrefix(pkg.PkgPath, "go.mongodb.org") { + continue + } + dirs = append(dirs, strings.TrimPrefix(pkg.PkgPath, "go.mongodb.org/mongo-driver")) + } + + err = os.MkdirAll(filepath.Join(destination, "mongo-driver"), os.ModeDir|os.FileMode(0755)) + if err != nil { + log.Fatalf("Could not make path: %v", err) + } + + t, err := template.New("index").Parse(tmpl) + if err != nil { + log.Fatalf("Could not parse template: %v", err) + } + + for _, dir := range dirs { + directory := filepath.Join(destination, "mongo-driver", dir) + err = os.MkdirAll(directory, os.ModeDir|os.FileMode(0755)) + if err != nil { + log.Fatalf("Could not create directory (%s): %v", directory, err) + } + + file, err := os.Create(filepath.Join(directory, "index.html")) + if err != nil { + log.Fatalf("Could not create index.html: %v", err) + } + + err = t.Execute(file, dir) + if err != nil { + log.Fatalf("Could not execute template: %v", err) + } + } +} diff --git a/cmd/godriver-benchmark/main.go b/cmd/godriver-benchmark/main.go index c4ec120268..312042a00a 100644 --- a/cmd/godriver-benchmark/main.go +++ b/cmd/godriver-benchmark/main.go @@ -9,7 +9,7 @@ package main import ( "os" - "github.com/mongodb/mongo-go-driver/benchmark" + "go.mongodb.org/mongo-driver/benchmark" ) func main() { diff --git a/etc/list_pkgs.sh b/etc/list_pkgs.sh index a02ecf42ca..290d896b97 100755 --- a/etc/list_pkgs.sh +++ b/etc/list_pkgs.sh @@ -4,4 +4,4 @@ directory="$1" if [ -z "$directory" ]; then directory="." fi -go list $directory/... | sed -e "s/^github.com\/mongodb\/mongo-go-driver/./" +go list $directory/... | sed -e "s/^go.mongodb.org\/mongo-driver/./" diff --git a/etc/list_test_pkgs.sh b/etc/list_test_pkgs.sh index 16f2c6e1fb..414d0f9195 100755 --- a/etc/list_test_pkgs.sh +++ b/etc/list_test_pkgs.sh @@ -8,5 +8,5 @@ fi if [ "Windows_NT" = "$OS" ]; then find "$directory" -iname "*_test.go" | perl -ple 's{(.*)/[^/]+}{$1}' | sort -u else - go list -test -f '{{.ForTest}}' $directory/... | sed -e "s/^github.com\/mongodb\/mongo-go-driver/./" + go list -test -f '{{.ForTest}}' $directory/... | sed -e "s/^go.mongodb.org\/mongo-driver/./" fi diff --git a/event/monitoring.go b/event/monitoring.go index 293fd40e9f..f6062ed057 100644 --- a/event/monitoring.go +++ b/event/monitoring.go @@ -4,12 +4,12 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package event +package event // import "go.mongodb.org/mongo-driver/event" import ( "context" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) // CommandStartedEvent represents an event generated when a command is sent to a server. diff --git a/examples/documentation_examples/examples.go b/examples/documentation_examples/examples.go index 353c470aa4..cd11301e2d 100644 --- a/examples/documentation_examples/examples.go +++ b/examples/documentation_examples/examples.go @@ -17,14 +17,14 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) func requireCursorLength(t *testing.T, cursor *mongo.Cursor, length int) { diff --git a/examples/documentation_examples/examples_test.go b/examples/documentation_examples/examples_test.go index 7521e2d3bd..49a08bc741 100644 --- a/examples/documentation_examples/examples_test.go +++ b/examples/documentation_examples/examples_test.go @@ -15,12 +15,12 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/examples/documentation_examples" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/examples/documentation_examples" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) func TestDocumentationExamples(t *testing.T) { diff --git a/internal/channel_connection.go b/internal/channel_connection.go index 770cb330cc..7e8b9f7065 100644 --- a/internal/channel_connection.go +++ b/internal/channel_connection.go @@ -9,9 +9,9 @@ package internal import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/wiremessage" "errors" "fmt" ) diff --git a/internal/const.go b/internal/const.go index 7100e31e8c..11354c4f06 100644 --- a/internal/const.go +++ b/internal/const.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package internal +package internal // import "go.mongodb.org/mongo-driver/internal" // Version is the current version of the driver. var Version = "local build" diff --git a/internal/results.go b/internal/results.go index 7879ebec47..0456899ceb 100644 --- a/internal/results.go +++ b/internal/results.go @@ -8,7 +8,7 @@ package internal import ( "time" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/primitive" ) // IsMasterResult is the result of executing this diff --git a/internal/semaphore_test.go b/internal/semaphore_test.go index 483a3b612d..1fed8337a9 100644 --- a/internal/semaphore_test.go +++ b/internal/semaphore_test.go @@ -11,7 +11,7 @@ import ( "sync" "testing" - . "github.com/mongodb/mongo-go-driver/internal" + . "go.mongodb.org/mongo-driver/internal" "github.com/stretchr/testify/require" ) diff --git a/internal/testutil/config.go b/internal/testutil/config.go index caecac3ac4..26bac11de6 100644 --- a/internal/testutil/config.go +++ b/internal/testutil/config.go @@ -17,13 +17,13 @@ import ( "sync" "testing" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" "github.com/stretchr/testify/require" ) diff --git a/internal/testutil/helpers/helpers.go b/internal/testutil/helpers/helpers.go index 2795962f43..d037c26c9a 100644 --- a/internal/testutil/helpers/helpers.go +++ b/internal/testutil/helpers/helpers.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package testhelpers +package testhelpers // import "go.mongodb.org/mongo-driver/internal/testutil/helpers" import ( "fmt" @@ -20,7 +20,7 @@ import ( "reflect" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/connstring" "github.com/stretchr/testify/require" ) diff --git a/internal/testutil/ops.go b/internal/testutil/ops.go index 6f9b678770..a6d057cf19 100644 --- a/internal/testutil/ops.go +++ b/internal/testutil/ops.go @@ -4,23 +4,23 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package testutil +package testutil // import "go.mongodb.org/mongo-driver/internal/testutil" import ( "context" "strings" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" "github.com/stretchr/testify/require" ) diff --git a/mongo/batch_cursor.go b/mongo/batch_cursor.go index 204dcd6a66..61b45894b4 100644 --- a/mongo/batch_cursor.go +++ b/mongo/batch_cursor.go @@ -3,8 +3,8 @@ package mongo import ( "context" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" ) // batchCursor is the interface implemented by types that can provide batches of document results. diff --git a/mongo/bulk_write.go b/mongo/bulk_write.go index f0861899cf..1c856b75ab 100644 --- a/mongo/bulk_write.go +++ b/mongo/bulk_write.go @@ -7,8 +7,8 @@ package mongo import ( - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/mongo/driver" ) // WriteModel is the interface satisfied by all models for bulk writes. diff --git a/mongo/causal_consistency_test.go b/mongo/causal_consistency_test.go index e494daea50..ae9e0a9289 100644 --- a/mongo/causal_consistency_test.go +++ b/mongo/causal_consistency_test.go @@ -11,14 +11,14 @@ import ( "os" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" ) var ccStarted *event.CommandStartedEvent diff --git a/mongo/change_stream.go b/mongo/change_stream.go index 1ea635ae43..f18e7322f5 100644 --- a/mongo/change_stream.go +++ b/mongo/change_stream.go @@ -11,17 +11,17 @@ import ( "errors" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) const errorInterrupted int32 = 11601 diff --git a/mongo/change_stream_spec_test.go b/mongo/change_stream_spec_test.go index b1fc53d424..8bd58f4196 100644 --- a/mongo/change_stream_spec_test.go +++ b/mongo/change_stream_spec_test.go @@ -14,10 +14,10 @@ import ( "path" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) const csTestsDir = "../data/change-streams" diff --git a/mongo/change_stream_test.go b/mongo/change_stream_test.go index 558386f16e..11e629934e 100644 --- a/mongo/change_stream_test.go +++ b/mongo/change_stream_test.go @@ -12,16 +12,15 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" ) var collectionStartingDoc = bsonx.Doc{ diff --git a/mongo/client.go b/mongo/client.go index 1eaaf7b6da..716148b75b 100644 --- a/mongo/client.go +++ b/mongo/client.go @@ -11,24 +11,24 @@ import ( "strings" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/compressor" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/compressor" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) const defaultLocalThreshold = 15 * time.Millisecond diff --git a/mongo/client_internal_test.go b/mongo/client_internal_test.go index fdd0fa16c2..a95a75e868 100644 --- a/mongo/client_internal_test.go +++ b/mongo/client_internal_test.go @@ -9,30 +9,26 @@ package mongo import ( "context" "errors" + "fmt" "os" "path" + "reflect" "testing" - - "fmt" - - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/tag" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/stretchr/testify/require" - "time" - "reflect" - - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/connstring" ) func createTestClient(t *testing.T) *Client { diff --git a/mongo/client_options_test.go b/mongo/client_options_test.go index c4541394e8..20e1eb3213 100644 --- a/mongo/client_options_test.go +++ b/mongo/client_options_test.go @@ -12,10 +12,10 @@ import ( "sync/atomic" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) func TestClientOptions_CustomDialer(t *testing.T) { diff --git a/mongo/client_test.go b/mongo/client_test.go index a0bebc9b88..88038c6920 100644 --- a/mongo/client_test.go +++ b/mongo/client_test.go @@ -12,11 +12,11 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) func ExampleClient_Connect() { diff --git a/mongo/collection.go b/mongo/collection.go index 5bea8f9c51..e91acf413c 100644 --- a/mongo/collection.go +++ b/mongo/collection.go @@ -11,17 +11,17 @@ import ( "errors" "strings" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Collection performs operations on a given collection. diff --git a/mongo/collection_internal_test.go b/mongo/collection_internal_test.go index 9045348450..85ae754574 100644 --- a/mongo/collection_internal_test.go +++ b/mongo/collection_internal_test.go @@ -13,22 +13,22 @@ import ( "os" "testing" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/network/command" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/network/command" ) var impossibleWriteConcern = writeconcern.New(writeconcern.W(50), writeconcern.WTimeout(time.Second)) diff --git a/mongo/command_monitoring_test.go b/mongo/command_monitoring_test.go index 54c1b312eb..2cbe752281 100644 --- a/mongo/command_monitoring_test.go +++ b/mongo/command_monitoring_test.go @@ -12,8 +12,8 @@ import ( "path" "testing" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" "bytes" "fmt" @@ -21,13 +21,13 @@ import ( "os" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" ) const cmTestsDir = "../data/command-monitoring" diff --git a/mongo/crud_spec_test.go b/mongo/crud_spec_test.go index 899e0a982b..91a8b58597 100644 --- a/mongo/crud_spec_test.go +++ b/mongo/crud_spec_test.go @@ -17,15 +17,15 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) type testFile struct { diff --git a/mongo/crud_util_test.go b/mongo/crud_util_test.go index 9cd1e00ab3..0ed32419cb 100644 --- a/mongo/crud_util_test.go +++ b/mongo/crud_util_test.go @@ -14,13 +14,13 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" ) // Various helper functions for crud related operations diff --git a/mongo/cursor.go b/mongo/cursor.go index 7f024cf57c..53ae121f0b 100644 --- a/mongo/cursor.go +++ b/mongo/cursor.go @@ -11,10 +11,10 @@ import ( "errors" "io" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" ) // Cursor is used to iterate a stream of documents. Each document is decoded into the result diff --git a/mongo/database.go b/mongo/database.go index 157a9b6ed6..f457ba9902 100644 --- a/mongo/database.go +++ b/mongo/database.go @@ -9,14 +9,14 @@ package mongo import ( "context" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // Database performs operations on a given database. diff --git a/mongo/database_internal_test.go b/mongo/database_internal_test.go index af46814d83..b2d2457afd 100644 --- a/mongo/database_internal_test.go +++ b/mongo/database_internal_test.go @@ -14,17 +14,17 @@ import ( "fmt" "os" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) func createTestDatabase(t *testing.T, name *string, opts ...*options.DatabaseOptions) *Database { diff --git a/mongo/database_test.go b/mongo/database_test.go index 8d923ea8e5..97a7f80f40 100644 --- a/mongo/database_test.go +++ b/mongo/database_test.go @@ -10,7 +10,7 @@ import ( "context" "time" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) // Individual commands can be sent to the server and response retrieved via run command. diff --git a/mongo/errors.go b/mongo/errors.go index c478999c14..f759f8470a 100644 --- a/mongo/errors.go +++ b/mongo/errors.go @@ -11,11 +11,11 @@ import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/result" ) // ErrUnacknowledgedWrite is returned from functions that have an unacknowledged diff --git a/mongo/gridfs/bucket.go b/mongo/gridfs/bucket.go index ed352e7c1a..2a71f98894 100644 --- a/mongo/gridfs/bucket.go +++ b/mongo/gridfs/bucket.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package gridfs +package gridfs // import "go.mongodb.org/mongo-driver/mongo/gridfs" import ( "bytes" @@ -16,15 +16,15 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // TODO: add sessions options diff --git a/mongo/gridfs/download_stream.go b/mongo/gridfs/download_stream.go index 4920b912cc..bd70e394d9 100644 --- a/mongo/gridfs/download_stream.go +++ b/mongo/gridfs/download_stream.go @@ -16,7 +16,7 @@ import ( "io" "math" - "github.com/mongodb/mongo-go-driver/mongo" + "go.mongodb.org/mongo-driver/mongo" ) // ErrWrongIndex is used when the chunk retrieved from the server does not have the expected index. diff --git a/mongo/gridfs/gridfs_spec_test.go b/mongo/gridfs/gridfs_spec_test.go index 440971f3b6..c7a64d1dc3 100644 --- a/mongo/gridfs/gridfs_spec_test.go +++ b/mongo/gridfs/gridfs_spec_test.go @@ -20,13 +20,13 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) type testFile struct { diff --git a/mongo/gridfs/gridfs_test.go b/mongo/gridfs/gridfs_test.go index 86c873d6af..741d2cc418 100644 --- a/mongo/gridfs/gridfs_test.go +++ b/mongo/gridfs/gridfs_test.go @@ -16,14 +16,14 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/internal/testutil/israce" + "go.mongodb.org/mongo-driver/internal/testutil/israce" "golang.org/x/net/context" ) diff --git a/mongo/gridfs/upload_stream.go b/mongo/gridfs/upload_stream.go index 56cbcf96a9..65d667469c 100644 --- a/mongo/gridfs/upload_stream.go +++ b/mongo/gridfs/upload_stream.go @@ -14,9 +14,9 @@ import ( "math" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/x/bsonx" ) // UploadBufferSize is the size in bytes of one stream batch. Chunks will be written to the db after the sum of chunk diff --git a/mongo/index_options_builder.go b/mongo/index_options_builder.go index abc1514f1f..e3a61d0821 100644 --- a/mongo/index_options_builder.go +++ b/mongo/index_options_builder.go @@ -7,7 +7,7 @@ package mongo import ( - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) // IndexOptionsBuilder constructs a BSON document for index options diff --git a/mongo/index_view.go b/mongo/index_view.go index 72dff14832..6eba430885 100644 --- a/mongo/index_view.go +++ b/mongo/index_view.go @@ -12,15 +12,15 @@ import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // ErrInvalidIndexValue indicates that the index Keys document has a value that isn't either a number or a string. diff --git a/mongo/index_view_internal_test.go b/mongo/index_view_internal_test.go index cb59c9f7d0..5086045ac1 100644 --- a/mongo/index_view_internal_test.go +++ b/mongo/index_view_internal_test.go @@ -15,9 +15,9 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" ) var seed = time.Now().UnixNano() diff --git a/mongo/mongo.go b/mongo/mongo.go index 44a55e293a..0630efbbde 100644 --- a/mongo/mongo.go +++ b/mongo/mongo.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package mongo +package mongo // import "go.mongodb.org/mongo-driver/mongo" import ( "context" @@ -14,13 +14,13 @@ import ( "reflect" "strings" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // Dialer is used to make network connections. diff --git a/mongo/mongo_test.go b/mongo/mongo_test.go index a533e7e9c6..36d27eb259 100644 --- a/mongo/mongo_test.go +++ b/mongo/mongo_test.go @@ -12,12 +12,12 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func noerr(t *testing.T, err error) { diff --git a/mongo/options/changestreamoptions.go b/mongo/options/changestreamoptions.go index c8776ac5ae..7106a79c7f 100644 --- a/mongo/options/changestreamoptions.go +++ b/mongo/options/changestreamoptions.go @@ -7,7 +7,7 @@ package options import ( - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/primitive" "time" ) diff --git a/mongo/options/clientoptions.go b/mongo/options/clientoptions.go index ee4e7d3835..d67535eea0 100644 --- a/mongo/options/clientoptions.go +++ b/mongo/options/clientoptions.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package options +package options // import "go.mongodb.org/mongo-driver/mongo/options" import ( "bytes" @@ -19,13 +19,13 @@ import ( "strings" "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/tag" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/network/connstring" ) // ContextDialer makes new network connections diff --git a/mongo/options/clientoptions_test.go b/mongo/options/clientoptions_test.go index 907f2f9a3c..b1e631f52b 100644 --- a/mongo/options/clientoptions_test.go +++ b/mongo/options/clientoptions_test.go @@ -13,13 +13,13 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) var tClientOptions = reflect.TypeOf(&ClientOptions{}) diff --git a/mongo/options/collation_test.go b/mongo/options/collation_test.go index 31ee1867d6..851cac9470 100644 --- a/mongo/options/collation_test.go +++ b/mongo/options/collation_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestCollation(t *testing.T) { diff --git a/mongo/options/collectionoptions.go b/mongo/options/collectionoptions.go index 3415505421..10d8827949 100644 --- a/mongo/options/collectionoptions.go +++ b/mongo/options/collectionoptions.go @@ -7,10 +7,10 @@ package options import ( - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // CollectionOptions represent all possible options to configure a Collection. diff --git a/mongo/options/dboptions.go b/mongo/options/dboptions.go index 989cb1303d..57f0581d06 100644 --- a/mongo/options/dboptions.go +++ b/mongo/options/dboptions.go @@ -7,10 +7,10 @@ package options import ( - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // DatabaseOptions represent all possible options to configure a Database. diff --git a/mongo/options/gridfsoptions.go b/mongo/options/gridfsoptions.go index abc3b33369..e24ad9a245 100644 --- a/mongo/options/gridfsoptions.go +++ b/mongo/options/gridfsoptions.go @@ -9,10 +9,10 @@ package options import ( "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // DefaultName is the default name for a GridFS bucket. diff --git a/mongo/options/mongooptions.go b/mongo/options/mongooptions.go index baadde4fd2..cc9b462e50 100644 --- a/mongo/options/mongooptions.go +++ b/mongo/options/mongooptions.go @@ -10,9 +10,9 @@ import ( "fmt" "reflect" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // Collation allows users to specify language-specific rules for string comparison, such as diff --git a/mongo/options/runcmdoptions.go b/mongo/options/runcmdoptions.go index c7c696de98..ec719d0202 100644 --- a/mongo/options/runcmdoptions.go +++ b/mongo/options/runcmdoptions.go @@ -6,7 +6,7 @@ package options -import "github.com/mongodb/mongo-go-driver/mongo/readpref" +import "go.mongodb.org/mongo-driver/mongo/readpref" // RunCmdOptions represents all possible options for a runCommand operation. type RunCmdOptions struct { diff --git a/mongo/options/sessionoptions.go b/mongo/options/sessionoptions.go index ffe45e6e60..6a7353eeb3 100644 --- a/mongo/options/sessionoptions.go +++ b/mongo/options/sessionoptions.go @@ -7,9 +7,9 @@ package options import ( - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // DefaultCausalConsistency is the default value for the CausalConsistency option. diff --git a/mongo/options/transactionoptions.go b/mongo/options/transactionoptions.go index 5aec1b9ea2..3fb502feec 100644 --- a/mongo/options/transactionoptions.go +++ b/mongo/options/transactionoptions.go @@ -7,9 +7,9 @@ package options import ( - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // TransactionOptions represents all possible options for starting a transaction. diff --git a/mongo/read_write_concern_spec_test.go b/mongo/read_write_concern_spec_test.go index fc6f8625eb..eb006cd8a0 100644 --- a/mongo/read_write_concern_spec_test.go +++ b/mongo/read_write_concern_spec_test.go @@ -15,12 +15,12 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/connstring" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/connstring" ) type connectionStringTest struct { diff --git a/mongo/readconcern/readconcern.go b/mongo/readconcern/readconcern.go index c185fff182..bd1adfcb22 100644 --- a/mongo/readconcern/readconcern.go +++ b/mongo/readconcern/readconcern.go @@ -4,11 +4,11 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package readconcern +package readconcern // import "go.mongodb.org/mongo-driver/mongo/readconcern" import ( - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ReadConcern for replica sets and replica set shards determines which data to return from a query. diff --git a/mongo/readpref/options.go b/mongo/readpref/options.go index a81cf3e006..74ce61b498 100644 --- a/mongo/readpref/options.go +++ b/mongo/readpref/options.go @@ -10,7 +10,7 @@ import ( "errors" "time" - "github.com/mongodb/mongo-go-driver/tag" + "go.mongodb.org/mongo-driver/tag" ) // ErrInvalidTagSet indicates that an invalid set of tags was specified. diff --git a/mongo/readpref/readpref.go b/mongo/readpref/readpref.go index 0d624ff485..3fe4f3f37b 100644 --- a/mongo/readpref/readpref.go +++ b/mongo/readpref/readpref.go @@ -4,13 +4,13 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package readpref +package readpref // import "go.mongodb.org/mongo-driver/mongo/readpref" import ( "errors" "time" - "github.com/mongodb/mongo-go-driver/tag" + "go.mongodb.org/mongo-driver/tag" ) var ( diff --git a/mongo/readpref/readpref_test.go b/mongo/readpref/readpref_test.go index 5ce9e69a84..f261cff38c 100644 --- a/mongo/readpref/readpref_test.go +++ b/mongo/readpref/readpref_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - . "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/tag" "github.com/stretchr/testify/require" + . "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/tag" ) func TestPrimary(t *testing.T) { diff --git a/mongo/results.go b/mongo/results.go index b4bcd02521..dfd7f3f55d 100644 --- a/mongo/results.go +++ b/mongo/results.go @@ -9,8 +9,8 @@ package mongo import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/network/result" ) // BulkWriteResult holds the result of a bulk write operation. diff --git a/mongo/results_test.go b/mongo/results_test.go index c5ea4f0fcf..b7aa3eecf4 100644 --- a/mongo/results_test.go +++ b/mongo/results_test.go @@ -9,9 +9,9 @@ package mongo import ( "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" ) func TestDeleteResult_unmarshalInto(t *testing.T) { diff --git a/mongo/retryable_writes_test.go b/mongo/retryable_writes_test.go index 2279bb3c48..19f67169d1 100644 --- a/mongo/retryable_writes_test.go +++ b/mongo/retryable_writes_test.go @@ -20,19 +20,19 @@ import ( "sync" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" ) const retryWritesDir = "../data/retryable-writes" diff --git a/mongo/session.go b/mongo/session.go index f6c5328354..1d60a12809 100644 --- a/mongo/session.go +++ b/mongo/session.go @@ -10,14 +10,14 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // ErrWrongClient is returned when a user attempts to pass in a session created by a different client than diff --git a/mongo/sessions_test.go b/mongo/sessions_test.go index 6927aa89f2..cbb56d32d3 100644 --- a/mongo/sessions_test.go +++ b/mongo/sessions_test.go @@ -18,22 +18,22 @@ import ( "bytes" "strings" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) var sessionStarted *event.CommandStartedEvent diff --git a/mongo/single_result.go b/mongo/single_result.go index 9a929db3be..56a1f7c0a6 100644 --- a/mongo/single_result.go +++ b/mongo/single_result.go @@ -10,8 +10,8 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" ) // ErrNoDocuments is returned by Decode when an operation that returns a diff --git a/mongo/transactions_test.go b/mongo/transactions_test.go index 0858cdd1e6..d2362f2e67 100644 --- a/mongo/transactions_test.go +++ b/mongo/transactions_test.go @@ -19,20 +19,20 @@ import ( "os" "path" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) const transactionTestsDir = "../data/transactions" diff --git a/mongo/writeconcern/writeconcern.go b/mongo/writeconcern/writeconcern.go index 234ba19e5e..85726f0653 100644 --- a/mongo/writeconcern/writeconcern.go +++ b/mongo/writeconcern/writeconcern.go @@ -4,15 +4,15 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package writeconcern +package writeconcern // import "go.mongodb.org/mongo-driver/mongo/writeconcern" import ( "errors" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ErrInconsistent indicates that an inconsistent write concern was specified. diff --git a/tag/tag.go b/tag/tag.go index c10bd3e536..13bf562383 100644 --- a/tag/tag.go +++ b/tag/tag.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package tag +package tag // import "go.mongodb.org/mongo-driver/tag" // Tag is a name/vlaue pair. type Tag struct { diff --git a/version/version.go b/version/version.go index 2fe4a2a76a..7e31ff02ed 100644 --- a/version/version.go +++ b/version/version.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package version +package version // import "go.mongodb.org/mongo-driver/version" // Driver is the current version of the driver. var Driver = "v1.0.0-rc1+prerelease" diff --git a/x/bsonx/array.go b/x/bsonx/array.go index 8001d70595..80359e8c70 100644 --- a/x/bsonx/array.go +++ b/x/bsonx/array.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package bsonx +package bsonx // import "go.mongodb.org/mongo-driver/x/bsonx" import ( "bytes" @@ -12,8 +12,8 @@ import ( "fmt" "strconv" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ErrNilArray indicates that an operation was attempted on a nil *Array. diff --git a/x/bsonx/bson_test.go b/x/bsonx/bson_test.go index b7dd310f79..ad4b636967 100644 --- a/x/bsonx/bson_test.go +++ b/x/bsonx/bson_test.go @@ -7,7 +7,7 @@ package bsonx import ( - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/primitive" "testing" ) diff --git a/x/bsonx/bsoncore/bsoncore.go b/x/bsonx/bsoncore/bsoncore.go index dfdd7a7647..20b4667977 100644 --- a/x/bsonx/bsoncore/bsoncore.go +++ b/x/bsonx/bsoncore/bsoncore.go @@ -23,7 +23,7 @@ // given dst slice. If the slice has enough capacity, it will not grow the // slice. The Append*Element functions within this package operate in the same // way, but additionally append the BSON type and the key before the value. -package bsoncore +package bsoncore // import "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" import ( "bytes" @@ -31,8 +31,8 @@ import ( "math" "time" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // AppendType will append t to dst and return the extended buffer. diff --git a/x/bsonx/bsoncore/bsoncore_test.go b/x/bsonx/bsoncore/bsoncore_test.go index 3ec20a12bb..1eb7eeb3ff 100644 --- a/x/bsonx/bsoncore/bsoncore_test.go +++ b/x/bsonx/bsoncore/bsoncore_test.go @@ -14,8 +14,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func noerr(t *testing.T, err error) { diff --git a/x/bsonx/bsoncore/document.go b/x/bsonx/bsoncore/document.go index e655a5198f..ff7cdf904c 100644 --- a/x/bsonx/bsoncore/document.go +++ b/x/bsonx/bsoncore/document.go @@ -14,7 +14,7 @@ import ( "strconv" "github.com/go-stack/stack" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // DocumentValidationError is an error type returned when attempting to validate a document. diff --git a/x/bsonx/bsoncore/document_sequence.go b/x/bsonx/bsoncore/document_sequence.go index 2199150f41..0751466530 100644 --- a/x/bsonx/bsoncore/document_sequence.go +++ b/x/bsonx/bsoncore/document_sequence.go @@ -4,7 +4,7 @@ import ( "errors" "io" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // DocumentSequenceStyle is used to represent how a document sequence is laid out in a slice of diff --git a/x/bsonx/bsoncore/document_test.go b/x/bsonx/bsoncore/document_test.go index a74b41fe93..6ec39c06ee 100644 --- a/x/bsonx/bsoncore/document_test.go +++ b/x/bsonx/bsoncore/document_test.go @@ -14,7 +14,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) func ExampleDocument_Validate() { diff --git a/x/bsonx/bsoncore/element.go b/x/bsonx/bsoncore/element.go index ccf9075c58..3acb4222b2 100644 --- a/x/bsonx/bsoncore/element.go +++ b/x/bsonx/bsoncore/element.go @@ -10,7 +10,7 @@ import ( "bytes" "fmt" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) // MalformedElementError represents a class of errors that RawElement methods return. diff --git a/x/bsonx/bsoncore/element_test.go b/x/bsonx/bsoncore/element_test.go index aece1c203d..7b2f9e5baf 100644 --- a/x/bsonx/bsoncore/element_test.go +++ b/x/bsonx/bsoncore/element_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) func TestElement(t *testing.T) { diff --git a/x/bsonx/bsoncore/value.go b/x/bsonx/bsoncore/value.go index f0593d2bcd..00f0bd3bda 100644 --- a/x/bsonx/bsoncore/value.go +++ b/x/bsonx/bsoncore/value.go @@ -17,8 +17,8 @@ import ( "time" "unicode/utf8" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // ElementTypeError specifies that a method to obtain a BSON value an incorrect type was called on a bson.Value. diff --git a/x/bsonx/bsoncore/value_test.go b/x/bsonx/bsoncore/value_test.go index 92da482943..ca0429f079 100644 --- a/x/bsonx/bsoncore/value_test.go +++ b/x/bsonx/bsoncore/value_test.go @@ -12,8 +12,8 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func TestValue(t *testing.T) { diff --git a/x/bsonx/constructor.go b/x/bsonx/constructor.go index 28374ba89e..a8be859ddf 100644 --- a/x/bsonx/constructor.go +++ b/x/bsonx/constructor.go @@ -11,8 +11,8 @@ import ( "math" "time" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) // IDoc is the interface implemented by Doc and MDoc. It allows either of these types to be provided diff --git a/x/bsonx/document.go b/x/bsonx/document.go index f2209a0f36..6d2c6f31a7 100644 --- a/x/bsonx/document.go +++ b/x/bsonx/document.go @@ -11,8 +11,8 @@ import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // ErrNilDocument indicates that an operation was attempted on a nil *bson.Document. diff --git a/x/bsonx/document_test.go b/x/bsonx/document_test.go index 1bbf25aa2c..4ed3e55843 100644 --- a/x/bsonx/document_test.go +++ b/x/bsonx/document_test.go @@ -12,8 +12,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func ExampleDocument() { diff --git a/x/bsonx/element.go b/x/bsonx/element.go index b45dbea58c..66054b2c50 100644 --- a/x/bsonx/element.go +++ b/x/bsonx/element.go @@ -9,7 +9,7 @@ package bsonx import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsontype" ) const validateMaxDepthDefault = 2048 diff --git a/x/bsonx/mdocument.go b/x/bsonx/mdocument.go index e4835562f7..380c8629cc 100644 --- a/x/bsonx/mdocument.go +++ b/x/bsonx/mdocument.go @@ -10,8 +10,8 @@ import ( "bytes" "fmt" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // MDoc is an unordered, type safe, concise BSON document representation. This type should not be diff --git a/x/bsonx/mdocument_test.go b/x/bsonx/mdocument_test.go index 0fb20ffdf0..c55770df69 100644 --- a/x/bsonx/mdocument_test.go +++ b/x/bsonx/mdocument_test.go @@ -11,8 +11,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestMDoc(t *testing.T) { diff --git a/x/bsonx/primitive_codecs.go b/x/bsonx/primitive_codecs.go index b34f07d0aa..0992536efd 100644 --- a/x/bsonx/primitive_codecs.go +++ b/x/bsonx/primitive_codecs.go @@ -11,9 +11,9 @@ import ( "fmt" "reflect" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsontype" ) var primitiveCodecs PrimitiveCodecs diff --git a/x/bsonx/primitive_codecs_test.go b/x/bsonx/primitive_codecs_test.go index 188f469c49..a63720a91b 100644 --- a/x/bsonx/primitive_codecs_test.go +++ b/x/bsonx/primitive_codecs_test.go @@ -7,13 +7,13 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/bson/bsonrw" - "github.com/mongodb/mongo-go-driver/bson/bsonrw/bsonrwtest" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson/bsonrw" + "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestDefaultValueEncoders(t *testing.T) { diff --git a/x/bsonx/registry.go b/x/bsonx/registry.go index 83dfaa55d2..ac21df22b5 100644 --- a/x/bsonx/registry.go +++ b/x/bsonx/registry.go @@ -1,8 +1,8 @@ package bsonx import ( - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" ) // DefaultRegistry is the default bsoncodec.Registry. It contains the default codecs and the diff --git a/x/bsonx/value.go b/x/bsonx/value.go index 033d9d8076..39a8736ce7 100644 --- a/x/bsonx/value.go +++ b/x/bsonx/value.go @@ -14,9 +14,9 @@ import ( "math" "time" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) // Val represents a BSON value. diff --git a/x/bsonx/value_test.go b/x/bsonx/value_test.go index 0674a7e9b7..c1f846d51b 100644 --- a/x/bsonx/value_test.go +++ b/x/bsonx/value_test.go @@ -12,8 +12,8 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" ) func TestValue(t *testing.T) { diff --git a/x/mongo/driver/abort_transaction.go b/x/mongo/driver/abort_transaction.go index 4798b0558b..acfed554e2 100644 --- a/x/mongo/driver/abort_transaction.go +++ b/x/mongo/driver/abort_transaction.go @@ -9,10 +9,10 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // AbortTransaction handles the full cycle dispatch and execution of abortting a transaction diff --git a/x/mongo/driver/aggregate.go b/x/mongo/driver/aggregate.go index 24e7f95949..3c217e65ae 100644 --- a/x/mongo/driver/aggregate.go +++ b/x/mongo/driver/aggregate.go @@ -9,21 +9,19 @@ package driver import ( "context" "fmt" - - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "time" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Aggregate handles the full cycle dispatch and execution of an aggregate command against the provided diff --git a/x/mongo/driver/auth/auth.go b/x/mongo/driver/auth/auth.go index 1b7bfb94c9..4464e3870c 100644 --- a/x/mongo/driver/auth/auth.go +++ b/x/mongo/driver/auth/auth.go @@ -10,11 +10,11 @@ import ( "context" "fmt" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // AuthenticatorFactory constructs an authenticator. diff --git a/x/mongo/driver/auth/auth_test.go b/x/mongo/driver/auth/auth_test.go index 56d9d20f63..29a9914941 100644 --- a/x/mongo/driver/auth/auth_test.go +++ b/x/mongo/driver/auth/auth_test.go @@ -11,10 +11,10 @@ import ( "reflect" - "github.com/mongodb/mongo-go-driver/x/bsonx" - . "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/bsonx" + . "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func TestCreateAuthenticator(t *testing.T) { diff --git a/x/mongo/driver/auth/default.go b/x/mongo/driver/auth/default.go index 52d07e94f7..e251f90360 100644 --- a/x/mongo/driver/auth/default.go +++ b/x/mongo/driver/auth/default.go @@ -9,8 +9,8 @@ package auth import ( "context" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func newDefaultAuthenticator(cred *Cred) (Authenticator, error) { diff --git a/x/mongo/driver/auth/gssapi.go b/x/mongo/driver/auth/gssapi.go index f32495795d..85dd2452a6 100644 --- a/x/mongo/driver/auth/gssapi.go +++ b/x/mongo/driver/auth/gssapi.go @@ -12,9 +12,9 @@ package auth import ( "context" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth/internal/gssapi" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // GSSAPI is the mechanism name for GSSAPI. diff --git a/x/mongo/driver/auth/mongodbcr.go b/x/mongo/driver/auth/mongodbcr.go index 955e248c0a..ccc1b0f922 100644 --- a/x/mongo/driver/auth/mongodbcr.go +++ b/x/mongo/driver/auth/mongodbcr.go @@ -13,11 +13,11 @@ import ( "io" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // MONGODBCR is the mechanism name for MONGODB-CR. diff --git a/x/mongo/driver/auth/mongodbcr_test.go b/x/mongo/driver/auth/mongodbcr_test.go index bed544470e..3c19768fb3 100644 --- a/x/mongo/driver/auth/mongodbcr_test.go +++ b/x/mongo/driver/auth/mongodbcr_test.go @@ -12,11 +12,11 @@ import ( "strings" - "github.com/mongodb/mongo-go-driver/internal" - "github.com/mongodb/mongo-go-driver/x/bsonx" - . "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/internal" + "go.mongodb.org/mongo-driver/x/bsonx" + . "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func TestMongoDBCRAuthenticator_Fails(t *testing.T) { diff --git a/x/mongo/driver/auth/plain.go b/x/mongo/driver/auth/plain.go index 3f66aee294..4f76eacc93 100644 --- a/x/mongo/driver/auth/plain.go +++ b/x/mongo/driver/auth/plain.go @@ -9,8 +9,8 @@ package auth import ( "context" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // PLAIN is the mechanism name for PLAIN. diff --git a/x/mongo/driver/auth/plain_test.go b/x/mongo/driver/auth/plain_test.go index 5ceab9174a..8a6003db0c 100644 --- a/x/mongo/driver/auth/plain_test.go +++ b/x/mongo/driver/auth/plain_test.go @@ -13,11 +13,11 @@ import ( "encoding/base64" - "github.com/mongodb/mongo-go-driver/internal" - "github.com/mongodb/mongo-go-driver/x/bsonx" - . "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/internal" + "go.mongodb.org/mongo-driver/x/bsonx" + . "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func TestPlainAuthenticator_Fails(t *testing.T) { diff --git a/x/mongo/driver/auth/sasl.go b/x/mongo/driver/auth/sasl.go index 0cc154417f..98ee4cfb5d 100644 --- a/x/mongo/driver/auth/sasl.go +++ b/x/mongo/driver/auth/sasl.go @@ -9,11 +9,11 @@ package auth import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // SaslClient is the client piece of a sasl conversation. diff --git a/x/mongo/driver/auth/scram.go b/x/mongo/driver/auth/scram.go index 170488d5bb..fa6d51e7ed 100644 --- a/x/mongo/driver/auth/scram.go +++ b/x/mongo/driver/auth/scram.go @@ -16,10 +16,10 @@ import ( "context" "fmt" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" "github.com/xdg/scram" "github.com/xdg/stringprep" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // SCRAMSHA1 holds the mechanism name "SCRAM-SHA-1" diff --git a/x/mongo/driver/auth/x509.go b/x/mongo/driver/auth/x509.go index 219513b861..3a681428ad 100644 --- a/x/mongo/driver/auth/x509.go +++ b/x/mongo/driver/auth/x509.go @@ -9,10 +9,10 @@ package auth import ( "context" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // MongoDBX509 is the mechanism name for MongoDBX509. diff --git a/x/mongo/driver/batch_cursor.go b/x/mongo/driver/batch_cursor.go index 914446f4c7..6f05cd5e65 100644 --- a/x/mongo/driver/batch_cursor.go +++ b/x/mongo/driver/batch_cursor.go @@ -5,13 +5,13 @@ import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // BatchCursor is a batch implementation of a cursor. It returns documents in entire batches instead diff --git a/x/mongo/driver/bulk_write.go b/x/mongo/driver/bulk_write.go index ade5010516..c59e496f85 100644 --- a/x/mongo/driver/bulk_write.go +++ b/x/mongo/driver/bulk_write.go @@ -9,16 +9,16 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // BulkWriteError is an error from one operation in a bulk write. diff --git a/x/mongo/driver/commit_transaction.go b/x/mongo/driver/commit_transaction.go index a3b3439a3a..213fca3ffa 100644 --- a/x/mongo/driver/commit_transaction.go +++ b/x/mongo/driver/commit_transaction.go @@ -9,10 +9,10 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // CommitTransaction handles the full cycle dispatch and execution of committing a transaction diff --git a/x/mongo/driver/count.go b/x/mongo/driver/count.go index 532e10eb5a..5de566c5b4 100644 --- a/x/mongo/driver/count.go +++ b/x/mongo/driver/count.go @@ -10,15 +10,15 @@ import ( "context" "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // Count handles the full cycle dispatch and execution of a count command against the provided diff --git a/x/mongo/driver/count_documents.go b/x/mongo/driver/count_documents.go index 33d8b2630c..5ff3c73cb2 100644 --- a/x/mongo/driver/count_documents.go +++ b/x/mongo/driver/count_documents.go @@ -8,18 +8,16 @@ package driver import ( "context" - - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // CountDocuments handles the full cycle dispatch and execution of a countDocuments command against the provided diff --git a/x/mongo/driver/create_indexes.go b/x/mongo/driver/create_indexes.go index 48b277e1d8..2015920d15 100644 --- a/x/mongo/driver/create_indexes.go +++ b/x/mongo/driver/create_indexes.go @@ -11,14 +11,14 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // CreateIndexes handles the full cycle dispatch and execution of a createIndexes diff --git a/x/mongo/driver/delete.go b/x/mongo/driver/delete.go index bac0494c7f..05ca207b50 100644 --- a/x/mongo/driver/delete.go +++ b/x/mongo/driver/delete.go @@ -9,16 +9,16 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Delete handles the full cycle dispatch and execution of a delete command against the provided diff --git a/x/mongo/driver/delete_indexes.go b/x/mongo/driver/delete_indexes.go index 669c797a32..be6b9a10bc 100644 --- a/x/mongo/driver/delete_indexes.go +++ b/x/mongo/driver/delete_indexes.go @@ -11,14 +11,14 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // DropIndexes handles the full cycle dispatch and execution of a dropIndexes diff --git a/x/mongo/driver/dispatch.go b/x/mongo/driver/dispatch.go index 2ec642ae13..fc2fcc0cc7 100644 --- a/x/mongo/driver/dispatch.go +++ b/x/mongo/driver/dispatch.go @@ -4,15 +4,15 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package driver +package driver // import "go.mongodb.org/mongo-driver/x/mongo/driver" import ( "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" ) // ErrCollation is caused if a collation is given for an invalid server version. diff --git a/x/mongo/driver/distinct.go b/x/mongo/driver/distinct.go index 6559dcc0f7..f741fa95f2 100644 --- a/x/mongo/driver/distinct.go +++ b/x/mongo/driver/distinct.go @@ -8,18 +8,16 @@ package driver import ( "context" - - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "time" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Distinct handles the full cycle dispatch and execution of a distinct command against the provided diff --git a/x/mongo/driver/drop_collection.go b/x/mongo/driver/drop_collection.go index 657ba3f795..d5bf8abc33 100644 --- a/x/mongo/driver/drop_collection.go +++ b/x/mongo/driver/drop_collection.go @@ -9,12 +9,12 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // DropCollection handles the full cycle dispatch and execution of a dropCollection diff --git a/x/mongo/driver/drop_database.go b/x/mongo/driver/drop_database.go index 7c9422f8eb..6e1ccf04a6 100644 --- a/x/mongo/driver/drop_database.go +++ b/x/mongo/driver/drop_database.go @@ -9,12 +9,12 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // DropDatabase handles the full cycle dispatch and execution of a dropDatabase diff --git a/x/mongo/driver/end_sessions.go b/x/mongo/driver/end_sessions.go index 46bec842af..9e345bfd5f 100644 --- a/x/mongo/driver/end_sessions.go +++ b/x/mongo/driver/end_sessions.go @@ -9,10 +9,10 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // EndSessions handles the full cycle dispatch and execution of an endSessions command against the provided diff --git a/x/mongo/driver/find.go b/x/mongo/driver/find.go index 30462e7399..bd25297213 100644 --- a/x/mongo/driver/find.go +++ b/x/mongo/driver/find.go @@ -13,18 +13,18 @@ import ( "errors" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Find handles the full cycle dispatch and execution of a find command against the provided diff --git a/x/mongo/driver/find_one_and_delete.go b/x/mongo/driver/find_one_and_delete.go index 462bd5dbad..d128e0d860 100644 --- a/x/mongo/driver/find_one_and_delete.go +++ b/x/mongo/driver/find_one_and_delete.go @@ -11,16 +11,16 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // FindOneAndDelete handles the full cycle dispatch and execution of a FindOneAndDelete command against the provided diff --git a/x/mongo/driver/find_one_and_replace.go b/x/mongo/driver/find_one_and_replace.go index f856f45161..00df6714b7 100644 --- a/x/mongo/driver/find_one_and_replace.go +++ b/x/mongo/driver/find_one_and_replace.go @@ -11,16 +11,16 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // FindOneAndReplace handles the full cycle dispatch and execution of a FindOneAndReplace command against the provided diff --git a/x/mongo/driver/find_one_and_update.go b/x/mongo/driver/find_one_and_update.go index a1f932ec19..0677455293 100644 --- a/x/mongo/driver/find_one_and_update.go +++ b/x/mongo/driver/find_one_and_update.go @@ -11,16 +11,16 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // FindOneAndUpdate handles the full cycle dispatch and execution of a FindOneAndUpdate command against the provided diff --git a/x/mongo/driver/insert.go b/x/mongo/driver/insert.go index f541e302f0..61a90c9c7c 100644 --- a/x/mongo/driver/insert.go +++ b/x/mongo/driver/insert.go @@ -9,16 +9,16 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Insert handles the full cycle dispatch and execution of an insert command against the provided diff --git a/x/mongo/driver/integration/aggregate_test.go b/x/mongo/driver/integration/aggregate_test.go index 1e6a5d3b00..b06e8f0b38 100644 --- a/x/mongo/driver/integration/aggregate_test.go +++ b/x/mongo/driver/integration/aggregate_test.go @@ -8,19 +8,19 @@ package integration import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" "testing" "time" ) diff --git a/x/mongo/driver/integration/integration.go b/x/mongo/driver/integration/integration.go index 76ab1b7282..723d056650 100644 --- a/x/mongo/driver/integration/integration.go +++ b/x/mongo/driver/integration/integration.go @@ -1 +1 @@ -package integration +package integration // import "go.mongodb.org/mongo-driver/x/mongo/driver/integration" diff --git a/x/mongo/driver/integration/main_test.go b/x/mongo/driver/integration/main_test.go index 87e62ccb73..a30b5f6446 100644 --- a/x/mongo/driver/integration/main_test.go +++ b/x/mongo/driver/integration/main_test.go @@ -16,9 +16,9 @@ import ( "sync" "testing" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" ) var host = flag.String("host", "127.0.0.1:27017", "specify the location of a running mongodb server.") diff --git a/x/mongo/driver/kill_cursors.go b/x/mongo/driver/kill_cursors.go index 126ecac97c..b3730c07a2 100644 --- a/x/mongo/driver/kill_cursors.go +++ b/x/mongo/driver/kill_cursors.go @@ -8,12 +8,13 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/wiremessage" + + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/result" ) // KillCursors handles the full cycle dispatch and execution of an aggregate command against the provided diff --git a/x/mongo/driver/list_collections.go b/x/mongo/driver/list_collections.go index c52df2d00f..60b7ffb9c6 100644 --- a/x/mongo/driver/list_collections.go +++ b/x/mongo/driver/list_collections.go @@ -11,15 +11,15 @@ import ( "errors" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" ) // ErrFilterType is thrown when a non-string filter is specified. diff --git a/x/mongo/driver/list_collections_batch_cursor.go b/x/mongo/driver/list_collections_batch_cursor.go index 23477f6fd9..b3fc7e8d66 100644 --- a/x/mongo/driver/list_collections_batch_cursor.go +++ b/x/mongo/driver/list_collections_batch_cursor.go @@ -6,8 +6,8 @@ import ( "io" "strings" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" ) // ListCollectionsBatchCursor is a special batch cursor returned from ListCollections that properly diff --git a/x/mongo/driver/list_collections_test.go b/x/mongo/driver/list_collections_test.go index 2da47c43d4..d993117aa1 100644 --- a/x/mongo/driver/list_collections_test.go +++ b/x/mongo/driver/list_collections_test.go @@ -7,8 +7,8 @@ package driver import ( - "github.com/mongodb/mongo-go-driver/x/bsonx" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/bsonx" "testing" ) diff --git a/x/mongo/driver/list_databases.go b/x/mongo/driver/list_databases.go index 608269b89c..6c2fed7fa9 100644 --- a/x/mongo/driver/list_databases.go +++ b/x/mongo/driver/list_databases.go @@ -9,14 +9,14 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // ListDatabases handles the full cycle dispatch and execution of a listDatabases command against the provided diff --git a/x/mongo/driver/list_indexes.go b/x/mongo/driver/list_indexes.go index d40ef965c8..956aebc71f 100644 --- a/x/mongo/driver/list_indexes.go +++ b/x/mongo/driver/list_indexes.go @@ -11,15 +11,15 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" ) // ListIndexes handles the full cycle dispatch and execution of a listIndexes command against the provided diff --git a/x/mongo/driver/models.go b/x/mongo/driver/models.go index 17ceb60a03..3dcb622eb8 100644 --- a/x/mongo/driver/models.go +++ b/x/mongo/driver/models.go @@ -7,7 +7,7 @@ package driver import ( - "github.com/mongodb/mongo-go-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/options" ) // WriteModel is the interface satisfied by all models for bulk writes. diff --git a/x/mongo/driver/read.go b/x/mongo/driver/read.go index e31877ce6c..55ba927152 100644 --- a/x/mongo/driver/read.go +++ b/x/mongo/driver/read.go @@ -9,13 +9,13 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // Read handles the full cycle dispatch and execution of a read command against the provided diff --git a/x/mongo/driver/read_cursor.go b/x/mongo/driver/read_cursor.go index fdc792cd16..49211a2a2a 100644 --- a/x/mongo/driver/read_cursor.go +++ b/x/mongo/driver/read_cursor.go @@ -9,13 +9,13 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // ReadCursor handles the full dispatch cycle and execution of a read command against the provided topology and returns diff --git a/x/mongo/driver/session/client_session.go b/x/mongo/driver/session/client_session.go index 5c5f6fbeb2..4bc657127f 100644 --- a/x/mongo/driver/session/client_session.go +++ b/x/mongo/driver/session/client_session.go @@ -4,17 +4,17 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package session +package session // import "go.mongodb.org/mongo-driver/x/mongo/driver/session" import ( "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" ) // ErrSessionEnded is returned when a client session is used after a call to endSession(). diff --git a/x/mongo/driver/session/client_session_test.go b/x/mongo/driver/session/client_session_test.go index 4b09a51e58..0d1add642c 100644 --- a/x/mongo/driver/session/client_session_test.go +++ b/x/mongo/driver/session/client_session_test.go @@ -10,11 +10,11 @@ import ( "bytes" "testing" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" ) var consistent = true diff --git a/x/mongo/driver/session/cluster_clock.go b/x/mongo/driver/session/cluster_clock.go index 85376bfd4c..961f2274e2 100644 --- a/x/mongo/driver/session/cluster_clock.go +++ b/x/mongo/driver/session/cluster_clock.go @@ -9,7 +9,7 @@ package session import ( "sync" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) // ClusterClock represents a logical clock for keeping track of cluster time. diff --git a/x/mongo/driver/session/cluster_clock_test.go b/x/mongo/driver/session/cluster_clock_test.go index 42cd9a30e4..b2d4626b9d 100644 --- a/x/mongo/driver/session/cluster_clock_test.go +++ b/x/mongo/driver/session/cluster_clock_test.go @@ -10,7 +10,7 @@ import ( "bytes" "testing" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" ) func TestClusterClock(t *testing.T) { diff --git a/x/mongo/driver/session/options.go b/x/mongo/driver/session/options.go index ac10518841..faedaa468e 100644 --- a/x/mongo/driver/session/options.go +++ b/x/mongo/driver/session/options.go @@ -7,9 +7,9 @@ package session import ( - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" ) // ClientOptions represents all possible options for creating a client session. diff --git a/x/mongo/driver/session/server_session.go b/x/mongo/driver/session/server_session.go index 06aa51fe55..5cd8401eba 100644 --- a/x/mongo/driver/session/server_session.go +++ b/x/mongo/driver/session/server_session.go @@ -11,8 +11,8 @@ import ( "crypto/rand" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" ) var rander = rand.Reader diff --git a/x/mongo/driver/session/session_pool.go b/x/mongo/driver/session/session_pool.go index af749da806..b4711122a5 100644 --- a/x/mongo/driver/session/session_pool.go +++ b/x/mongo/driver/session/session_pool.go @@ -9,8 +9,8 @@ package session import ( "sync" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/description" ) // Node represents a server session in a linked list diff --git a/x/mongo/driver/session/session_pool_test.go b/x/mongo/driver/session/session_pool_test.go index d35665df0f..3f55ea5300 100644 --- a/x/mongo/driver/session/session_pool_test.go +++ b/x/mongo/driver/session/session_pool_test.go @@ -9,8 +9,8 @@ package session import ( "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestSessionPool(t *testing.T) { diff --git a/x/mongo/driver/topology/connection.go b/x/mongo/driver/topology/connection.go index 70d3ba4a91..222e81e744 100644 --- a/x/mongo/driver/topology/connection.go +++ b/x/mongo/driver/topology/connection.go @@ -12,10 +12,10 @@ import ( "strings" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // sconn is a wrapper around a connection.Connection. This type is returned by diff --git a/x/mongo/driver/topology/connection_test.go b/x/mongo/driver/topology/connection_test.go index b700aca243..2b5ba88ea4 100644 --- a/x/mongo/driver/topology/connection_test.go +++ b/x/mongo/driver/topology/connection_test.go @@ -10,11 +10,11 @@ import ( "context" "testing" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) type netErr struct { diff --git a/x/mongo/driver/topology/fsm.go b/x/mongo/driver/topology/fsm.go index 3682b575c2..6875f55758 100644 --- a/x/mongo/driver/topology/fsm.go +++ b/x/mongo/driver/topology/fsm.go @@ -10,9 +10,9 @@ import ( "bytes" "fmt" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/description" ) var supportedWireVersions = description.NewVersionRange(2, 6) diff --git a/x/mongo/driver/topology/initial_dns_seedlist_discovery_test.go b/x/mongo/driver/topology/initial_dns_seedlist_discovery_test.go index 461c512950..a620986e9b 100644 --- a/x/mongo/driver/topology/initial_dns_seedlist_discovery_test.go +++ b/x/mongo/driver/topology/initial_dns_seedlist_discovery_test.go @@ -16,10 +16,10 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) const seedlistTestDir string = "../../../../data/initial-dns-seedlist-discovery/" diff --git a/x/mongo/driver/topology/sdam_spec_test.go b/x/mongo/driver/topology/sdam_spec_test.go index 0878b2fb3a..0b4546d88c 100644 --- a/x/mongo/driver/topology/sdam_spec_test.go +++ b/x/mongo/driver/topology/sdam_spec_test.go @@ -13,12 +13,12 @@ import ( "path" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) type response struct { diff --git a/x/mongo/driver/topology/server.go b/x/mongo/driver/topology/server.go index 1c182bcc4a..e3579240a1 100644 --- a/x/mongo/driver/topology/server.go +++ b/x/mongo/driver/topology/server.go @@ -16,13 +16,13 @@ import ( "sync/atomic" "time" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) const minHeartbeatInterval = 500 * time.Millisecond diff --git a/x/mongo/driver/topology/server_options.go b/x/mongo/driver/topology/server_options.go index 0ebbecf530..1acf5736fa 100644 --- a/x/mongo/driver/topology/server_options.go +++ b/x/mongo/driver/topology/server_options.go @@ -9,10 +9,10 @@ package topology import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/connection" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/connection" ) var defaultRegistry = bson.NewRegistryBuilder().Build() diff --git a/x/mongo/driver/topology/server_rtt_test.go b/x/mongo/driver/topology/server_rtt_test.go index 82dbaa6f81..b8bccbdbbd 100644 --- a/x/mongo/driver/topology/server_rtt_test.go +++ b/x/mongo/driver/topology/server_rtt_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" ) // Test case for all server selection rtt spec tests. diff --git a/x/mongo/driver/topology/server_test.go b/x/mongo/driver/topology/server_test.go index c4514be015..ea54b51556 100644 --- a/x/mongo/driver/topology/server_test.go +++ b/x/mongo/driver/topology/server_test.go @@ -11,12 +11,12 @@ import ( "sync/atomic" "testing" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) type pool struct { diff --git a/x/mongo/driver/topology/topology.go b/x/mongo/driver/topology/topology.go index 09a319cc44..2d9b6051d7 100644 --- a/x/mongo/driver/topology/topology.go +++ b/x/mongo/driver/topology/topology.go @@ -8,7 +8,7 @@ // of servers. This package is designed to expose enough inner workings of service discovery // and monitoring to allow low level applications to have fine grained control, while hiding // most of the detailed implementation of the algorithms. -package topology +package topology // import "go.mongodb.org/mongo-driver/x/mongo/driver/topology" import ( "context" @@ -20,10 +20,10 @@ import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson/bsoncodec" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson/bsoncodec" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/description" ) // ErrSubscribeAfterClosed is returned when a user attempts to subscribe to a diff --git a/x/mongo/driver/topology/topology_options.go b/x/mongo/driver/topology/topology_options.go index 9fa98e66e5..d7cd99b12d 100644 --- a/x/mongo/driver/topology/topology_options.go +++ b/x/mongo/driver/topology/topology_options.go @@ -11,11 +11,11 @@ import ( "strings" "time" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/compressor" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/compressor" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" ) // Option is a configuration option for a topology. diff --git a/x/mongo/driver/topology/topology_options_test.go b/x/mongo/driver/topology/topology_options_test.go index e960d8bd7b..fbbc332541 100644 --- a/x/mongo/driver/topology/topology_options_test.go +++ b/x/mongo/driver/topology/topology_options_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/network/connstring" "github.com/stretchr/testify/assert" + "go.mongodb.org/mongo-driver/x/network/connstring" ) func TestOptionsSetting(t *testing.T) { diff --git a/x/mongo/driver/topology/topology_test.go b/x/mongo/driver/topology/topology_test.go index 005c0b6502..b939949a81 100644 --- a/x/mongo/driver/topology/topology_test.go +++ b/x/mongo/driver/topology/topology_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) const testTimeout = 2 * time.Second diff --git a/x/mongo/driver/update.go b/x/mongo/driver/update.go index 0a17fbf37f..1ec1e5ac57 100644 --- a/x/mongo/driver/update.go +++ b/x/mongo/driver/update.go @@ -9,16 +9,16 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) // Update handles the full cycle dispatch and execution of an update command against the provided diff --git a/x/mongo/driver/uuid/uuid.go b/x/mongo/driver/uuid/uuid.go index 7ad5eea0c9..83a67850e6 100644 --- a/x/mongo/driver/uuid/uuid.go +++ b/x/mongo/driver/uuid/uuid.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package uuid +package uuid // import "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" import ( "bytes" diff --git a/x/mongo/driver/write.go b/x/mongo/driver/write.go index 6447a49ea4..d4c81a4f8a 100644 --- a/x/mongo/driver/write.go +++ b/x/mongo/driver/write.go @@ -9,13 +9,13 @@ package driver import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) // Write handles the full cycle dispatch and execution of a write command against the provided diff --git a/x/network/address/addr.go b/x/network/address/addr.go index c2a3bb7ba4..1244a8bcc4 100644 --- a/x/network/address/addr.go +++ b/x/network/address/addr.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package address +package address // import "go.mongodb.org/mongo-driver/x/network/address" import ( "net" diff --git a/x/network/command/abort_transaction.go b/x/network/command/abort_transaction.go index 54e5cca4be..439cc6695d 100644 --- a/x/network/command/abort_transaction.go +++ b/x/network/command/abort_transaction.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // AbortTransaction represents the abortTransaction() command diff --git a/x/network/command/aggregate.go b/x/network/command/aggregate.go index eb5f9fedd0..f3a68e59df 100644 --- a/x/network/command/aggregate.go +++ b/x/network/command/aggregate.go @@ -9,15 +9,15 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Aggregate represents the aggregate command. diff --git a/x/network/command/aggregate_test.go b/x/network/command/aggregate_test.go index 13cd5f73b2..38d7be6305 100644 --- a/x/network/command/aggregate_test.go +++ b/x/network/command/aggregate_test.go @@ -7,10 +7,10 @@ package command import ( - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/description" "testing" ) diff --git a/x/network/command/buildinfo.go b/x/network/command/buildinfo.go index 6bd09face3..550fb3dd48 100644 --- a/x/network/command/buildinfo.go +++ b/x/network/command/buildinfo.go @@ -10,10 +10,10 @@ import ( "context" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // BuildInfo represents the buildInfo command. diff --git a/x/network/command/command.go b/x/network/command/command.go index 859f797b4a..e05b69edb3 100644 --- a/x/network/command/command.go +++ b/x/network/command/command.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package command +package command // import "go.mongodb.org/mongo-driver/x/network/command" import ( "errors" @@ -13,17 +13,17 @@ import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // WriteBatch represents a single batch for a write operation. diff --git a/x/network/command/command_test.go b/x/network/command/command_test.go index 403f6f1212..b35b08ba4a 100644 --- a/x/network/command/command_test.go +++ b/x/network/command/command_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func noerr(t *testing.T, err error) { diff --git a/x/network/command/commit_transaction.go b/x/network/command/commit_transaction.go index e04bd6fe69..2051bc0e1f 100644 --- a/x/network/command/commit_transaction.go +++ b/x/network/command/commit_transaction.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // CommitTransaction represents the commitTransaction() command diff --git a/x/network/command/count.go b/x/network/command/count.go index 419a78b357..0d5404b5d6 100644 --- a/x/network/command/count.go +++ b/x/network/command/count.go @@ -10,14 +10,14 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Count represents the count command. diff --git a/x/network/command/count_documents.go b/x/network/command/count_documents.go index 6122f13466..d69a9e4e1e 100644 --- a/x/network/command/count_documents.go +++ b/x/network/command/count_documents.go @@ -10,13 +10,13 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // CountDocuments represents the CountDocuments command. diff --git a/x/network/command/create_indexes.go b/x/network/command/create_indexes.go index e2b33c3085..06c632a744 100644 --- a/x/network/command/create_indexes.go +++ b/x/network/command/create_indexes.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // CreateIndexes represents the createIndexes command. diff --git a/x/network/command/create_indexes_test.go b/x/network/command/create_indexes_test.go index c55f8e30be..e0133eb206 100644 --- a/x/network/command/create_indexes_test.go +++ b/x/network/command/create_indexes_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestCreateIndexes(t *testing.T) { diff --git a/x/network/command/delete.go b/x/network/command/delete.go index de20dd721e..effbbce09c 100644 --- a/x/network/command/delete.go +++ b/x/network/command/delete.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Delete represents the delete command. diff --git a/x/network/command/distinct.go b/x/network/command/distinct.go index ba793e15e8..03601523b2 100644 --- a/x/network/command/distinct.go +++ b/x/network/command/distinct.go @@ -9,14 +9,14 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Distinct represents the disctinct command. diff --git a/x/network/command/drop_collection.go b/x/network/command/drop_collection.go index c067ccc279..7719a419f6 100644 --- a/x/network/command/drop_collection.go +++ b/x/network/command/drop_collection.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // DropCollection represents the drop command. diff --git a/x/network/command/drop_collection_test.go b/x/network/command/drop_collection_test.go index 1f5ba1a6e1..3e186130fd 100644 --- a/x/network/command/drop_collection_test.go +++ b/x/network/command/drop_collection_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestDropCollection(t *testing.T) { diff --git a/x/network/command/drop_database.go b/x/network/command/drop_database.go index e3b3f7c9af..5c81ae59f9 100644 --- a/x/network/command/drop_database.go +++ b/x/network/command/drop_database.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // DropDatabase represents the DropDatabase command. diff --git a/x/network/command/drop_database_test.go b/x/network/command/drop_database_test.go index d512fdd93a..62ba164f37 100644 --- a/x/network/command/drop_database_test.go +++ b/x/network/command/drop_database_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestDropDatabase(t *testing.T) { diff --git a/x/network/command/drop_indexes.go b/x/network/command/drop_indexes.go index bf6a7d6575..0c916b08fe 100644 --- a/x/network/command/drop_indexes.go +++ b/x/network/command/drop_indexes.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // DropIndexes represents the dropIndexes command. diff --git a/x/network/command/drop_indexes_test.go b/x/network/command/drop_indexes_test.go index afde68f649..1fdf14014c 100644 --- a/x/network/command/drop_indexes_test.go +++ b/x/network/command/drop_indexes_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestDropIndexes(t *testing.T) { diff --git a/x/network/command/end_sessions.go b/x/network/command/end_sessions.go index 11ac140ddf..e402878fd2 100644 --- a/x/network/command/end_sessions.go +++ b/x/network/command/end_sessions.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // must be sent to admin db diff --git a/x/network/command/end_sessions_test.go b/x/network/command/end_sessions_test.go index 2187eff640..8f61f8b78a 100644 --- a/x/network/command/end_sessions_test.go +++ b/x/network/command/end_sessions_test.go @@ -9,7 +9,7 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" ) func TestEndSessions(t *testing.T) { diff --git a/x/network/command/errors.go b/x/network/command/errors.go index 5ecb48cce7..ab424efb52 100644 --- a/x/network/command/errors.go +++ b/x/network/command/errors.go @@ -12,8 +12,8 @@ import ( "strings" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/network/result" ) var ( diff --git a/x/network/command/find.go b/x/network/command/find.go index e9d135e1fa..711e8e0110 100644 --- a/x/network/command/find.go +++ b/x/network/command/find.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Find represents the find command. diff --git a/x/network/command/find_and_modify.go b/x/network/command/find_and_modify.go index 6fa4aeaf5d..604fe674d0 100644 --- a/x/network/command/find_and_modify.go +++ b/x/network/command/find_and_modify.go @@ -9,9 +9,9 @@ package command import ( "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/network/result" ) // unmarshalFindAndModifyResult turns the provided bson.Reader into a findAndModify result. diff --git a/x/network/command/find_one_delete.go b/x/network/command/find_one_delete.go index f5c36d2e80..195ebceb70 100644 --- a/x/network/command/find_one_delete.go +++ b/x/network/command/find_one_delete.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // FindOneAndDelete represents the findOneAndDelete operation. diff --git a/x/network/command/find_one_delete_test.go b/x/network/command/find_one_delete_test.go index 40a307ccaa..1fa56d1c2e 100644 --- a/x/network/command/find_one_delete_test.go +++ b/x/network/command/find_one_delete_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestFindOneAndDelete(t *testing.T) { diff --git a/x/network/command/find_one_replace.go b/x/network/command/find_one_replace.go index b3139f806f..e64823a23d 100644 --- a/x/network/command/find_one_replace.go +++ b/x/network/command/find_one_replace.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // FindOneAndReplace represents the findOneAndReplace operation. diff --git a/x/network/command/find_one_replace_test.go b/x/network/command/find_one_replace_test.go index 6ddaf30c56..712febec41 100644 --- a/x/network/command/find_one_replace_test.go +++ b/x/network/command/find_one_replace_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestFindOneAndReplace(t *testing.T) { diff --git a/x/network/command/find_one_update.go b/x/network/command/find_one_update.go index b90c7d0dee..97749b0f69 100644 --- a/x/network/command/find_one_update.go +++ b/x/network/command/find_one_update.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // FindOneAndUpdate represents the findOneAndUpdate operation. diff --git a/x/network/command/find_one_update_test.go b/x/network/command/find_one_update_test.go index ef825d5efb..b604893677 100644 --- a/x/network/command/find_one_update_test.go +++ b/x/network/command/find_one_update_test.go @@ -3,8 +3,8 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestFindOneAndUpdate(t *testing.T) { diff --git a/x/network/command/get_more.go b/x/network/command/get_more.go index ce016b1154..0b04d2643d 100644 --- a/x/network/command/get_more.go +++ b/x/network/command/get_more.go @@ -9,11 +9,11 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // GetMore represents the getMore command. diff --git a/x/network/command/getlasterror.go b/x/network/command/getlasterror.go index 4f68c3c2cf..f5f3b4747e 100644 --- a/x/network/command/getlasterror.go +++ b/x/network/command/getlasterror.go @@ -11,13 +11,13 @@ import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // GetLastError represents the getLastError command. diff --git a/x/network/command/handshake.go b/x/network/command/handshake.go index 29eb1034e9..122c39ebf6 100644 --- a/x/network/command/handshake.go +++ b/x/network/command/handshake.go @@ -10,12 +10,12 @@ import ( "context" "runtime" - "github.com/mongodb/mongo-go-driver/version" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/version" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Handshake represents a generic MongoDB Handshake. It calls isMaster and diff --git a/x/network/command/insert.go b/x/network/command/insert.go index 5059630346..dc8a0bdf6d 100644 --- a/x/network/command/insert.go +++ b/x/network/command/insert.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // this is the amount of reserved buffer space in a message that the diff --git a/x/network/command/insert_test.go b/x/network/command/insert_test.go index 5eb08c534d..a0a69f59cc 100644 --- a/x/network/command/insert_test.go +++ b/x/network/command/insert_test.go @@ -9,9 +9,9 @@ package command import ( "testing" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/assert" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestInsertCommandSplitting(t *testing.T) { diff --git a/x/network/command/ismaster.go b/x/network/command/ismaster.go index 6bd8d095c9..9fdae6c59c 100644 --- a/x/network/command/ismaster.go +++ b/x/network/command/ismaster.go @@ -10,11 +10,11 @@ import ( "context" "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // IsMaster represents the isMaster command. diff --git a/x/network/command/kill_cursors.go b/x/network/command/kill_cursors.go index 37b1f89a9a..289ff5400a 100644 --- a/x/network/command/kill_cursors.go +++ b/x/network/command/kill_cursors.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // KillCursors represents the killCursors command. diff --git a/x/network/command/list_collections.go b/x/network/command/list_collections.go index 0c3e76e2c0..e29dabaa9d 100644 --- a/x/network/command/list_collections.go +++ b/x/network/command/list_collections.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // ListCollections represents the listCollections command. diff --git a/x/network/command/list_databases.go b/x/network/command/list_databases.go index d4fd843c9c..79cb2c6d12 100644 --- a/x/network/command/list_databases.go +++ b/x/network/command/list_databases.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // ListDatabases represents the listDatabases command. diff --git a/x/network/command/list_indexes.go b/x/network/command/list_indexes.go index 48730ed77b..b8ada7c984 100644 --- a/x/network/command/list_indexes.go +++ b/x/network/command/list_indexes.go @@ -10,11 +10,11 @@ import ( "context" "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // ErrEmptyCursor is a signaling error when a cursor for list indexes is empty. diff --git a/x/network/command/opmsg.go b/x/network/command/opmsg.go index c2d595257d..969cd01596 100644 --- a/x/network/command/opmsg.go +++ b/x/network/command/opmsg.go @@ -7,9 +7,9 @@ package command import ( - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func decodeCommandOpMsg(msg wiremessage.Msg) (bson.Raw, error) { diff --git a/x/network/command/opreply.go b/x/network/command/opreply.go index 68c15edd1b..e709c8c685 100644 --- a/x/network/command/opreply.go +++ b/x/network/command/opreply.go @@ -7,8 +7,8 @@ package command import ( - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // decodeCommandOpReply handles decoding the OP_REPLY response to an OP_QUERY diff --git a/x/network/command/read.go b/x/network/command/read.go index d7b65477ee..bda6d23d33 100644 --- a/x/network/command/read.go +++ b/x/network/command/read.go @@ -11,13 +11,13 @@ import ( "fmt" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/readconcern" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/readconcern" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Read represents a generic database read command. diff --git a/x/network/command/start_session.go b/x/network/command/start_session.go index 69758b89c5..c925f63157 100644 --- a/x/network/command/start_session.go +++ b/x/network/command/start_session.go @@ -9,12 +9,12 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // StartSession represents a startSession command diff --git a/x/network/command/update.go b/x/network/command/update.go index 29470ae735..5ec03e47a8 100644 --- a/x/network/command/update.go +++ b/x/network/command/update.go @@ -9,13 +9,13 @@ package command import ( "context" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Update represents the update command. diff --git a/x/network/command/write.go b/x/network/command/write.go index 3787faefb9..8ed3693a22 100644 --- a/x/network/command/write.go +++ b/x/network/command/write.go @@ -12,12 +12,12 @@ import ( "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Write represents a generic write database command. diff --git a/x/network/command/write_test.go b/x/network/command/write_test.go index b960408054..87b42b33d7 100644 --- a/x/network/command/write_test.go +++ b/x/network/command/write_test.go @@ -4,11 +4,11 @@ import ( "bytes" "testing" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func TestWrite(t *testing.T) { diff --git a/x/network/compressor/compression.go b/x/network/compressor/compression.go index 5ec2ea078b..5833b7bb02 100644 --- a/x/network/compressor/compression.go +++ b/x/network/compressor/compression.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package compressor +package compressor // import "go.mongodb.org/mongo-driver/x/network/compressor" import ( "bytes" @@ -13,7 +13,7 @@ import ( "io" "github.com/golang/snappy" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Compressor is the interface implemented by types that can compress and decompress wire messages. This is used diff --git a/x/network/connection/connection.go b/x/network/connection/connection.go index 5e64037308..827ee69ff8 100644 --- a/x/network/connection/connection.go +++ b/x/network/connection/connection.go @@ -11,7 +11,7 @@ // writing to and reading from a connection to wireops.Op's. This package also provides types for // listening for and accepting Connections, as well as some types for handling connections and // proxying connections to another server. -package connection +package connection // import "go.mongodb.org/mongo-driver/x/network/connection" import ( "context" @@ -24,15 +24,15 @@ import ( "sync/atomic" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/bsontype" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/compressor" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/bsontype" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/compressor" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) var globalClientConnectionID uint64 diff --git a/x/network/connection/options.go b/x/network/connection/options.go index cd19931a04..5ed8567314 100644 --- a/x/network/connection/options.go +++ b/x/network/connection/options.go @@ -10,8 +10,8 @@ import ( "net" "time" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/x/network/compressor" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/x/network/compressor" ) type config struct { diff --git a/x/network/connection/pool.go b/x/network/connection/pool.go index 3a25ad379c..823a1102e5 100644 --- a/x/network/connection/pool.go +++ b/x/network/connection/pool.go @@ -11,9 +11,9 @@ import ( "sync" "sync/atomic" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" "golang.org/x/sync/semaphore" ) diff --git a/x/network/connection/pool_test.go b/x/network/connection/pool_test.go index f7137d62c5..bf7d7fe1eb 100644 --- a/x/network/connection/pool_test.go +++ b/x/network/connection/pool_test.go @@ -16,7 +16,7 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/address" ) func TestPool(t *testing.T) { diff --git a/x/network/connection/proxy.go b/x/network/connection/proxy.go index 62e18d22c0..eafd90541a 100644 --- a/x/network/connection/proxy.go +++ b/x/network/connection/proxy.go @@ -6,7 +6,7 @@ package connection -import "github.com/mongodb/mongo-go-driver/x/network/wiremessage" +import "go.mongodb.org/mongo-driver/x/network/wiremessage" // Proxy implements a MongoDB proxy. It will use the given pool to connect to a // MongoDB server and proxy the traffic between connections it is given and the diff --git a/x/network/connstring/connstring.go b/x/network/connstring/connstring.go index c5c008cdf3..56b198cb62 100644 --- a/x/network/connstring/connstring.go +++ b/x/network/connstring/connstring.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package connstring +package connstring // import "go.mongodb.org/mongo-driver/x/network/connstring" import ( "errors" @@ -16,9 +16,9 @@ import ( "strings" "time" - "github.com/mongodb/mongo-go-driver/internal" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/internal" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) // Parse parses the provided uri and returns a URI object. diff --git a/x/network/connstring/connstring_spec_test.go b/x/network/connstring/connstring_spec_test.go index c812c0c2e4..a252c544b7 100644 --- a/x/network/connstring/connstring_spec_test.go +++ b/x/network/connstring/connstring_spec_test.go @@ -12,9 +12,9 @@ import ( "path" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" - "github.com/mongodb/mongo-go-driver/x/network/connstring" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/x/network/connstring" ) type host struct { diff --git a/x/network/connstring/connstring_test.go b/x/network/connstring/connstring_test.go index 01ef18a0d5..e2ee11f013 100644 --- a/x/network/connstring/connstring_test.go +++ b/x/network/connstring/connstring_test.go @@ -12,8 +12,8 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/x/network/connstring" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/x/network/connstring" ) func TestAppName(t *testing.T) { diff --git a/x/network/description/description.go b/x/network/description/description.go index 758b112f85..f2ac523154 100644 --- a/x/network/description/description.go +++ b/x/network/description/description.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package description +package description // import "go.mongodb.org/mongo-driver/x/network/description" // Unknown is an unknown server or topology kind. const Unknown = 0 diff --git a/x/network/description/max_staleness_spec_test.go b/x/network/description/max_staleness_spec_test.go index 9564cf0aa2..29bd852f36 100644 --- a/x/network/description/max_staleness_spec_test.go +++ b/x/network/description/max_staleness_spec_test.go @@ -10,7 +10,7 @@ import ( "path" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" ) const maxStalenessTestsDir = "../../../data/max-staleness" diff --git a/x/network/description/selector_spec_test.go b/x/network/description/selector_spec_test.go index 73b3585b3f..98af7c7909 100644 --- a/x/network/description/selector_spec_test.go +++ b/x/network/description/selector_spec_test.go @@ -10,7 +10,7 @@ import ( "path" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil/helpers" + "go.mongodb.org/mongo-driver/internal/testutil/helpers" ) const selectorTestsDir = "../../../data/server-selection/server_selection" diff --git a/x/network/description/selector_test.go b/x/network/description/selector_test.go index 6675d1fa75..4dc5afa505 100644 --- a/x/network/description/selector_test.go +++ b/x/network/description/selector_test.go @@ -11,10 +11,10 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/tag" - "github.com/mongodb/mongo-go-driver/x/network/address" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/network/address" ) func TestServerSelection(t *testing.T) { diff --git a/x/network/description/server.go b/x/network/description/server.go index d6857ce330..102e476294 100644 --- a/x/network/description/server.go +++ b/x/network/description/server.go @@ -10,10 +10,10 @@ import ( "fmt" "time" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/tag" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/result" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/result" ) // UnsetRTT is the unset value for a round trip time. diff --git a/x/network/description/server_selector.go b/x/network/description/server_selector.go index 9c31b6ec89..d53bee07ed 100644 --- a/x/network/description/server_selector.go +++ b/x/network/description/server_selector.go @@ -11,8 +11,8 @@ import ( "math" "time" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/tag" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/tag" ) // ServerSelector is an interface implemented by types that can select a server given a diff --git a/x/network/description/shared_spec_test.go b/x/network/description/shared_spec_test.go index 760f17baf0..72ecb705b5 100644 --- a/x/network/description/shared_spec_test.go +++ b/x/network/description/shared_spec_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/tag" - "github.com/mongodb/mongo-go-driver/x/network/address" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/network/address" ) type testCase struct { diff --git a/x/network/description/topology.go b/x/network/description/topology.go index caf447d27e..25f30d0dd0 100644 --- a/x/network/description/topology.go +++ b/x/network/description/topology.go @@ -10,7 +10,7 @@ import ( "sort" "strings" - "github.com/mongodb/mongo-go-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/address" ) // Topology represents a description of a mongodb topology diff --git a/x/network/doc.go b/x/network/doc.go index e768cc19db..a51b4795e0 100644 --- a/x/network/doc.go +++ b/x/network/doc.go @@ -7,4 +7,4 @@ // Package network contains a MongoDB networking library. The packages contained within allow users // to build applications that use the MongoDB RPC protocol. Knowledge of how the MongoDB RPC // protocol works is expected. This library will likely only be of us for users internal to MongoDB. -package network +package network // import "go.mongodb.org/mongo-driver/x/network" diff --git a/x/network/examples/cluster_monitoring/main.go b/x/network/examples/cluster_monitoring/main.go index d73cc94343..ebe9c81310 100644 --- a/x/network/examples/cluster_monitoring/main.go +++ b/x/network/examples/cluster_monitoring/main.go @@ -11,7 +11,7 @@ import ( "log" "github.com/kr/pretty" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" ) func main() { diff --git a/x/network/examples/count/main.go b/x/network/examples/count/main.go index 2c9cae6a44..175f1494ea 100644 --- a/x/network/examples/count/main.go +++ b/x/network/examples/count/main.go @@ -13,15 +13,15 @@ import ( "flag" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) var uri = flag.String("uri", "mongodb://localhost:27017", "the mongodb uri to use") diff --git a/x/network/examples/server_monitoring/main.go b/x/network/examples/server_monitoring/main.go index e1a4a95123..5e885f4391 100644 --- a/x/network/examples/server_monitoring/main.go +++ b/x/network/examples/server_monitoring/main.go @@ -12,9 +12,9 @@ import ( "time" "github.com/kr/pretty" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/connection" ) func main() { diff --git a/x/network/examples/workload/main.go b/x/network/examples/workload/main.go index 807e5e953b..c876db3d0f 100644 --- a/x/network/examples/workload/main.go +++ b/x/network/examples/workload/main.go @@ -17,18 +17,18 @@ import ( "os/signal" "time" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - - "github.com/mongodb/mongo-go-driver/bson" - - "github.com/mongodb/mongo-go-driver/mongo/readpref" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + + "go.mongodb.org/mongo-driver/bson" + + "go.mongodb.org/mongo-driver/mongo/readpref" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) var concurrency = flag.Int("concurrency", 24, "how much concurrency should be used") diff --git a/x/network/integration/aggregate_test.go b/x/network/integration/aggregate_test.go index 98c6d0bf9f..f4807f03db 100644 --- a/x/network/integration/aggregate_test.go +++ b/x/network/integration/aggregate_test.go @@ -11,14 +11,14 @@ import ( "strings" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestCommandAggregate(t *testing.T) { diff --git a/x/network/integration/command_test.go b/x/network/integration/command_test.go index 5c79f3a1cf..6f8d5703bd 100644 --- a/x/network/integration/command_test.go +++ b/x/network/integration/command_test.go @@ -10,15 +10,15 @@ import ( "context" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/result" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/result" ) func TestCommand(t *testing.T) { diff --git a/x/network/integration/compressor_test.go b/x/network/integration/compressor_test.go index 8408d230f1..a969e70ca0 100644 --- a/x/network/integration/compressor_test.go +++ b/x/network/integration/compressor_test.go @@ -12,13 +12,13 @@ import ( "context" "os" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/require" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestCompression(t *testing.T) { diff --git a/x/network/integration/connection_test.go b/x/network/integration/connection_test.go index 89faab5606..e5baf2de1e 100644 --- a/x/network/integration/connection_test.go +++ b/x/network/integration/connection_test.go @@ -13,10 +13,10 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func TestConnection(t *testing.T) { diff --git a/x/network/integration/cursor_test.go b/x/network/integration/cursor_test.go index b0c5782815..b36547a737 100644 --- a/x/network/integration/cursor_test.go +++ b/x/network/integration/cursor_test.go @@ -12,18 +12,18 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/assert" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestTailableCursorLoopsUntilDocsAvailable(t *testing.T) { diff --git a/x/network/integration/find_test.go b/x/network/integration/find_test.go index feb3d033f5..3615b1f5f4 100644 --- a/x/network/integration/find_test.go +++ b/x/network/integration/find_test.go @@ -14,17 +14,17 @@ import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/event" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" "github.com/stretchr/testify/assert" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func initMonitor() (chan *event.CommandStartedEvent, chan *event.CommandSucceededEvent, chan *event.CommandFailedEvent, *event.CommandMonitor) { diff --git a/x/network/integration/integration.go b/x/network/integration/integration.go index e198507a29..544f15d84a 100644 --- a/x/network/integration/integration.go +++ b/x/network/integration/integration.go @@ -4,10 +4,10 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package integration +package integration // import "go.mongodb.org/mongo-driver/x/network/integration" import ( // These imports are for coverage information. - _ "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - _ "github.com/mongodb/mongo-go-driver/x/network/connection" + _ "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + _ "go.mongodb.org/mongo-driver/x/network/connection" ) diff --git a/x/network/integration/list_collections_test.go b/x/network/integration/list_collections_test.go index 1a40bef800..48006219a6 100644 --- a/x/network/integration/list_collections_test.go +++ b/x/network/integration/list_collections_test.go @@ -11,16 +11,16 @@ import ( "io" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func skipIfBelow32(t *testing.T) { diff --git a/x/network/integration/list_databases_test.go b/x/network/integration/list_databases_test.go index f3928a222c..d1235c38e8 100644 --- a/x/network/integration/list_databases_test.go +++ b/x/network/integration/list_databases_test.go @@ -10,11 +10,11 @@ import ( "context" "testing" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestListDatabases(t *testing.T) { diff --git a/x/network/integration/list_indexes_test.go b/x/network/integration/list_indexes_test.go index 61e98013ad..60ccd787dc 100644 --- a/x/network/integration/list_indexes_test.go +++ b/x/network/integration/list_indexes_test.go @@ -11,15 +11,15 @@ import ( "io" "testing" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/options" - "github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore" - "github.com/mongodb/mongo-go-driver/x/mongo/driver" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/session" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/uuid" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/options" + "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" + "go.mongodb.org/mongo-driver/x/mongo/driver" + "go.mongodb.org/mongo-driver/x/mongo/driver/session" + "go.mongodb.org/mongo-driver/x/mongo/driver/uuid" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/description" ) func runCommand(t *testing.T, cmd command.ListIndexes, opts ...*options.ListIndexesOptions) (*driver.BatchCursor, error) { diff --git a/x/network/integration/main_test.go b/x/network/integration/main_test.go index 87e62ccb73..a30b5f6446 100644 --- a/x/network/integration/main_test.go +++ b/x/network/integration/main_test.go @@ -16,9 +16,9 @@ import ( "sync" "testing" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" ) var host = flag.String("host", "127.0.0.1:27017", "specify the location of a running mongodb server.") diff --git a/x/network/integration/opmsg_test.go b/x/network/integration/opmsg_test.go index 9be35f6d93..5ee16ddd6f 100644 --- a/x/network/integration/opmsg_test.go +++ b/x/network/integration/opmsg_test.go @@ -13,15 +13,15 @@ import ( "bytes" "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/internal" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/description" - "github.com/mongodb/mongo-go-driver/x/network/wiremessage" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/internal" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/network/wiremessage" ) func createServerConn(t *testing.T) (*topology.SelectedServer, connection.Connection) { diff --git a/x/network/integration/pool_test.go b/x/network/integration/pool_test.go index e829439840..c5bb10e32a 100644 --- a/x/network/integration/pool_test.go +++ b/x/network/integration/pool_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/connection" ) func TestPool(t *testing.T) { diff --git a/x/network/integration/scram_test.go b/x/network/integration/scram_test.go index 26b97c5f24..ddcfdcf6b2 100644 --- a/x/network/integration/scram_test.go +++ b/x/network/integration/scram_test.go @@ -13,12 +13,12 @@ import ( "context" "os" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) type scramTestCase struct { diff --git a/x/network/integration/server_test.go b/x/network/integration/server_test.go index 1a888752dc..0eef65ed9e 100644 --- a/x/network/integration/server_test.go +++ b/x/network/integration/server_test.go @@ -13,13 +13,13 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/internal/testutil" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/auth" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/address" - "github.com/mongodb/mongo-go-driver/x/network/command" - "github.com/mongodb/mongo-go-driver/x/network/compressor" - "github.com/mongodb/mongo-go-driver/x/network/connection" + "go.mongodb.org/mongo-driver/internal/testutil" + "go.mongodb.org/mongo-driver/x/mongo/driver/auth" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/address" + "go.mongodb.org/mongo-driver/x/network/command" + "go.mongodb.org/mongo-driver/x/network/compressor" + "go.mongodb.org/mongo-driver/x/network/connection" ) func TestTopologyServer(t *testing.T) { diff --git a/x/network/integration/topology_test.go b/x/network/integration/topology_test.go index cf92b62b8f..574e53201b 100644 --- a/x/network/integration/topology_test.go +++ b/x/network/integration/topology_test.go @@ -12,10 +12,10 @@ import ( "testing" "time" - "github.com/mongodb/mongo-go-driver/x/mongo/driver/topology" - "github.com/mongodb/mongo-go-driver/x/network/connection" - "github.com/mongodb/mongo-go-driver/x/network/connstring" - "github.com/mongodb/mongo-go-driver/x/network/description" + "go.mongodb.org/mongo-driver/x/mongo/driver/topology" + "go.mongodb.org/mongo-driver/x/network/connection" + "go.mongodb.org/mongo-driver/x/network/connstring" + "go.mongodb.org/mongo-driver/x/network/description" ) func TestTopologyTopology(t *testing.T) { diff --git a/x/network/result/result.go b/x/network/result/result.go index b6093272c7..0c85619425 100644 --- a/x/network/result/result.go +++ b/x/network/result/result.go @@ -5,14 +5,14 @@ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Package result contains the results from various operations. -package result +package result // import "go.mongodb.org/mongo-driver/x/network/result" import ( "time" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/bson/primitive" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/bson/primitive" + "go.mongodb.org/mongo-driver/x/bsonx" ) // Upsert contains the information for a single upsert. diff --git a/x/network/wiremessage/command.go b/x/network/wiremessage/command.go index 8c339a5c3e..3221c17fc5 100644 --- a/x/network/wiremessage/command.go +++ b/x/network/wiremessage/command.go @@ -6,7 +6,7 @@ package wiremessage -import "github.com/mongodb/mongo-go-driver/bson" +import "go.mongodb.org/mongo-driver/bson" // Command represents the OP_COMMAND message of the MongoDB wire protocol. type Command struct { diff --git a/x/network/wiremessage/command_reply.go b/x/network/wiremessage/command_reply.go index d5773d6c41..3b500192e3 100644 --- a/x/network/wiremessage/command_reply.go +++ b/x/network/wiremessage/command_reply.go @@ -6,7 +6,7 @@ package wiremessage -import "github.com/mongodb/mongo-go-driver/bson" +import "go.mongodb.org/mongo-driver/bson" // CommandReply represents the OP_COMMANDREPLY message of the MongoDB wire protocol. type CommandReply struct { diff --git a/x/network/wiremessage/delete.go b/x/network/wiremessage/delete.go index 0a502da970..f128d03122 100644 --- a/x/network/wiremessage/delete.go +++ b/x/network/wiremessage/delete.go @@ -6,7 +6,7 @@ package wiremessage -import "github.com/mongodb/mongo-go-driver/bson" +import "go.mongodb.org/mongo-driver/bson" // Delete represents the OP_DELETE message of the MongoDB wire protocol. type Delete struct { diff --git a/x/network/wiremessage/get_more.go b/x/network/wiremessage/get_more.go index f19711386d..55d7b4d64c 100644 --- a/x/network/wiremessage/get_more.go +++ b/x/network/wiremessage/get_more.go @@ -9,7 +9,7 @@ package wiremessage import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" "strings" ) diff --git a/x/network/wiremessage/insert.go b/x/network/wiremessage/insert.go index 498228d0b9..e8c02fcd92 100644 --- a/x/network/wiremessage/insert.go +++ b/x/network/wiremessage/insert.go @@ -6,7 +6,7 @@ package wiremessage -import "github.com/mongodb/mongo-go-driver/bson" +import "go.mongodb.org/mongo-driver/bson" // Insert represents the OP_INSERT message of the MongoDB wire protocol. type Insert struct { diff --git a/x/network/wiremessage/kill_cursors.go b/x/network/wiremessage/kill_cursors.go index 228a6aecbe..d0b8cfc52e 100644 --- a/x/network/wiremessage/kill_cursors.go +++ b/x/network/wiremessage/kill_cursors.go @@ -9,7 +9,7 @@ package wiremessage import ( "errors" "fmt" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" ) // KillCursors represents the OP_KILL_CURSORS message of the MongoDB wire protocol. diff --git a/x/network/wiremessage/msg.go b/x/network/wiremessage/msg.go index 07f35ab994..408027a0dd 100644 --- a/x/network/wiremessage/msg.go +++ b/x/network/wiremessage/msg.go @@ -9,8 +9,8 @@ package wiremessage import ( "errors" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" ) // Msg represents the OP_MSG message of the MongoDB wire protocol. diff --git a/x/network/wiremessage/msg_test.go b/x/network/wiremessage/msg_test.go index e758f8a1e5..2f4b823b6e 100644 --- a/x/network/wiremessage/msg_test.go +++ b/x/network/wiremessage/msg_test.go @@ -10,7 +10,7 @@ import ( "bytes" "testing" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/bsonx" ) var doc = bsonx.Doc{{"x", bsonx.Int32(5)}} diff --git a/x/network/wiremessage/query.go b/x/network/wiremessage/query.go index 568a3ecfd9..63b4fdb48a 100644 --- a/x/network/wiremessage/query.go +++ b/x/network/wiremessage/query.go @@ -11,9 +11,9 @@ import ( "fmt" "strings" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/mongo/writeconcern" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/mongo/writeconcern" + "go.mongodb.org/mongo-driver/x/bsonx" ) // Query represents the OP_QUERY message of the MongoDB wire protocol. diff --git a/x/network/wiremessage/query_test.go b/x/network/wiremessage/query_test.go index 3641ba3d88..8083bcf243 100644 --- a/x/network/wiremessage/query_test.go +++ b/x/network/wiremessage/query_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) func TestQuery(t *testing.T) { diff --git a/x/network/wiremessage/readers.go b/x/network/wiremessage/readers.go index bbf394d538..80af38e76d 100644 --- a/x/network/wiremessage/readers.go +++ b/x/network/wiremessage/readers.go @@ -10,7 +10,7 @@ import ( "bytes" "errors" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) func readInt32(b []byte, pos int32) int32 { diff --git a/x/network/wiremessage/reply.go b/x/network/wiremessage/reply.go index dc8e450137..3ab833a7f5 100644 --- a/x/network/wiremessage/reply.go +++ b/x/network/wiremessage/reply.go @@ -11,8 +11,8 @@ import ( "fmt" "strings" - "github.com/mongodb/mongo-go-driver/bson" - "github.com/mongodb/mongo-go-driver/x/bsonx" + "go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/x/bsonx" ) // Reply represents the OP_REPLY message of the MongoDB wire protocol. diff --git a/x/network/wiremessage/reply_test.go b/x/network/wiremessage/reply_test.go index 54e0388242..6cb8101fac 100644 --- a/x/network/wiremessage/reply_test.go +++ b/x/network/wiremessage/reply_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/mongodb/mongo-go-driver/bson" + "go.mongodb.org/mongo-driver/bson" ) func TestReply(t *testing.T) { diff --git a/x/network/wiremessage/update.go b/x/network/wiremessage/update.go index a987327a71..0a0cfa1cef 100644 --- a/x/network/wiremessage/update.go +++ b/x/network/wiremessage/update.go @@ -6,7 +6,7 @@ package wiremessage -import "github.com/mongodb/mongo-go-driver/bson" +import "go.mongodb.org/mongo-driver/bson" // Update represents the OP_UPDATE message of the MongoDB wire protocol. type Update struct { diff --git a/x/network/wiremessage/wiremessage.go b/x/network/wiremessage/wiremessage.go index c2cb153227..44bf5071e0 100644 --- a/x/network/wiremessage/wiremessage.go +++ b/x/network/wiremessage/wiremessage.go @@ -10,7 +10,7 @@ // corresponding implementations. One prefixed with Immutable which can be created by casting a // []byte to the type, and another prefixed with Mutable that is a struct with methods to mutate // the op. -package wiremessage +package wiremessage // import "go.mongodb.org/mongo-driver/x/network/wiremessage" import ( "context"