Skip to content

Commit b07d022

Browse files
committed
Update import path to go.mongodb.org/mongo-driver
GODRIVER-120 Change-Id: I59f3064384777bcde0816d2da2d1621144824e87
1 parent a1dceec commit b07d022

File tree

326 files changed

+1459
-1377
lines changed

Some content is hidden

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

326 files changed

+1459
-1377
lines changed

.errcheck-excludes

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
(*github.com/mongodb/mongo-go-driver/x/network/connection.connection).Close
2-
(github.com/mongodb/mongo-go-driver/x/network/connection.Connection).Close
3-
(*github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.Subscription).Unsubscribe
4-
(*github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.Server).Close
5-
(*github.com/mongodb/mongo-go-driver/x/network/connection.pool).closeConnection
6-
(github.com/mongodb/mongo-go-driver/x/network/wiremessage.ReadWriteCloser).Close
7-
(*github.com/mongodb/mongo-go-driver/mongo.Cursor).Close
8-
(*github.com/mongodb/mongo-go-driver/mongo.ChangeStream).Close
1+
(*go.mongodb.org/mongo-driver/x/network/connection.connection).Close
2+
(go.mongodb.org/mongo-driver/x/network/connection.Connection).Close
3+
(*go.mongodb.org/mongo-driver/x/mongo/driver/topology.Subscription).Unsubscribe
4+
(*go.mongodb.org/mongo-driver/x/mongo/driver/topology.Server).Close
5+
(*go.mongodb.org/mongo-driver/x/network/connection.pool).closeConnection
6+
(go.mongodb.org/mongo-driver/x/network/wiremessage.ReadWriteCloser).Close
7+
(*go.mongodb.org/mongo-driver/mongo.Cursor).Close
8+
(*go.mongodb.org/mongo-driver/mongo.ChangeStream).Close
99
(net.Conn).Close
1010
encoding/pem.Encode
1111
fmt.Fprintf

.evergreen/config.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ functions:
2929
- command: git.get_project
3030
type: system
3131
params:
32-
directory: src/github.com/mongodb/mongo-go-driver
32+
directory: src/go.mongodb.org/mongo-driver
3333
# Make an evergreen expansion file with dynamic values
3434
- command: shell.exec
3535
params:
36-
working_dir: src/github.com/mongodb/mongo-go-driver
36+
working_dir: src/go.mongodb.org/mongo-driver
3737
script: |
3838
if [ "Windows_NT" = "$OS" ]; then
39-
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`)))))
39+
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`))))
4040
else
41-
export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`))))
41+
export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
4242
fi;
4343
4444
# Get the current unique version of this checkout
@@ -64,8 +64,8 @@ functions:
6464
export PROJECT="${project}"
6565
6666
if [ "Windows_NT" = "$OS" ]; then
67-
export USERPROFILE=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`)))))
68-
export HOME=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`)))))
67+
export USERPROFILE=$(cygpath -w $(dirname $(dirname $(dirname `pwd`))))
68+
export HOME=$(cygpath -w $(dirname $(dirname $(dirname `pwd`))))
6969
fi
7070
7171
go version
@@ -97,7 +97,7 @@ functions:
9797
# Load the expansion file to make an evergreen variable with the current unique version
9898
- command: expansions.update
9999
params:
100-
file: src/github.com/mongodb/mongo-go-driver/expansion.yml
100+
file: src/go.mongodb.org/mongo-driver/expansion.yml
101101

102102

103103
prepare-resources:
@@ -115,7 +115,7 @@ functions:
115115
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config
116116
- command: shell.exec
117117
params:
118-
working_dir: src/github.com/mongodb/mongo-go-driver
118+
working_dir: src/go.mongodb.org/mongo-driver
119119
script: |
120120
${PREPARE_SHELL}
121121
# any go tools that we need
@@ -216,7 +216,7 @@ functions:
216216
- command: shell.exec
217217
type: test
218218
params:
219-
working_dir: src/github.com/mongodb/mongo-go-driver
219+
working_dir: src/go.mongodb.org/mongo-driver
220220
script: |
221221
${PREPARE_SHELL}
222222
${BUILD_ENV|} make ${targets} BUILD_TAGS="-tags gssapi"
@@ -226,7 +226,7 @@ functions:
226226
- command: shell.exec
227227
type: test
228228
params:
229-
working_dir: src/github.com/mongodb/mongo-go-driver
229+
working_dir: src/go.mongodb.org/mongo-driver
230230
script: |
231231
${PREPARE_SHELL}
232232
@@ -245,21 +245,21 @@ functions:
245245
- command: json.send
246246
params:
247247
name: perf
248-
file: src/github.com/mongodb/mongo-go-driver/perf.json
248+
file: src/go.mongodb.org/mongo-driver/perf.json
249249

250250

251251
run-enterprise-auth-tests:
252252
- command: shell.exec
253253
type: test
254254
params:
255255
silent: true
256-
working_dir: src/github.com/mongodb/mongo-go-driver
256+
working_dir: src/go.mongodb.org/mongo-driver
257257
script: |
258258
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
259259
if [ "Windows_NT" = "$OS" ]; then
260-
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`)))))
260+
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`))))
261261
else
262-
export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`))))
262+
export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
263263
fi;
264264
export GOPATH="$GOPATH"
265265
export GOROOT="${GO_DIST}"
@@ -271,14 +271,14 @@ functions:
271271
type: test
272272
params:
273273
silent: true
274-
working_dir: src/github.com/mongodb/mongo-go-driver
274+
working_dir: src/go.mongodb.org/mongo-driver
275275
script: |
276276
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
277277
if [ "Windows_NT" = "$OS" ]; then
278-
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname $(dirname `pwd`)))))
278+
export GOPATH=$(cygpath -w $(dirname $(dirname $(dirname `pwd`))))
279279
export MONGODB_URI=${gssapi_auth_windows_mongodb_uri}
280280
else
281-
export GOPATH=$(dirname $(dirname $(dirname $(dirname `pwd`))))
281+
export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
282282
echo "${gssapi_auth_linux_keytab_base64}" > /tmp/drivers.keytab.base64
283283
base64 --decode /tmp/drivers.keytab.base64 > ${PROJECT_DIRECTORY}/.evergreen/drivers.keytab
284284
mkdir -p ~/.krb5
@@ -302,7 +302,7 @@ post:
302302
- command: gotest.parse_files
303303
params:
304304
files:
305-
- "src/github.com/mongodb/mongo-go-driver/*.suite"
305+
- "src/go.mongodb.org/mongo-driver/*.suite"
306306
- func: upload-mo-artifacts
307307
- func: cleanup
308308

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p align="center"><img src="etc/assets/mongo-gopher.png" width="250"></p>
22
<p align="center">
3-
<a href="https://goreportcard.com/report/github.com/mongodb/mongo-go-driver"><img src="https://goreportcard.com/badge/github.com/mongodb/mongo-go-driver"></a>
4-
<a href="https://godoc.org/github.com/mongodb/mongo-go-driver/mongo"><img src="etc/assets/godoc-mongo-blue.svg" alt="GoDoc"></a>
5-
<a href="https://godoc.org/github.com/mongodb/mongo-go-driver/bson"><img src="etc/assets/godoc-bson-blue.svg" alt="GoDoc"></a>
3+
<a href="https://goreportcard.com/report/go.mongodb.org/mongo-driver"><img src="https://goreportcard.com/badge/go.mongodb.org/mongo-driver"></a>
4+
<a href="https://godoc.org/go.mongodb.org/mongo-driver/mongo"><img src="etc/assets/godoc-mongo-blue.svg" alt="GoDoc"></a>
5+
<a href="https://godoc.org/go.mongodb.org/mongo-driver/bson"><img src="etc/assets/godoc-bson-blue.svg" alt="GoDoc"></a>
66
<a href="https://docs.mongodb.com/ecosystem/drivers/go/"><img src="etc/assets/docs-mongodb-green.svg"></a>
77
</p>
88

@@ -31,7 +31,7 @@ The MongoDB supported driver for Go.
3131
The recommended way to get started using the MongoDB Go driver is by using `dep` to install the dependency in your project.
3232

3333
```bash
34-
dep ensure -add github.com/mongodb/mongo-go-driver/mongo
34+
dep ensure -add go.mongodb.org/mongo-driver/mongo
3535
```
3636

3737
-------------------------
@@ -40,7 +40,7 @@ dep ensure -add github.com/mongodb/mongo-go-driver/mongo
4040
To get started with the driver, import the `mongo` package, create a `mongo.Client`:
4141

4242
```go
43-
import "github.com/mongodb/mongo-go-driver/mongo"
43+
import "go.mongodb.org/mongo-driver/mongo"
4444

4545
client, err := mongo.NewClient(options.Client().ApplyURI("mongodb://localhost:27017"))
4646
```

benchmark/bson.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"io/ioutil"
1212
"path/filepath"
1313

14-
"github.com/mongodb/mongo-go-driver/bson"
15-
"github.com/mongodb/mongo-go-driver/x/bsonx"
14+
"go.mongodb.org/mongo-driver/bson"
15+
"go.mongodb.org/mongo-driver/x/bsonx"
1616
)
1717

1818
const (

benchmark/bson_document.go

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

13-
"github.com/mongodb/mongo-go-driver/x/bsonx"
13+
"go.mongodb.org/mongo-driver/x/bsonx"
1414
)
1515

1616
func bsonDocumentEncoding(ctx context.Context, tm TimerManager, iters int, source string) error {

benchmark/bson_map.go

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

14-
"github.com/mongodb/mongo-go-driver/bson"
14+
"go.mongodb.org/mongo-driver/bson"
1515
)
1616

1717
func bsonMapDecoding(ctx context.Context, tm TimerManager, iters int, dataSet string) error {

benchmark/bson_struct.go

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

13-
"github.com/mongodb/mongo-go-driver/bson"
13+
"go.mongodb.org/mongo-driver/bson"
1414
)
1515

1616
func BSONFlatStructDecoding(ctx context.Context, tm TimerManager, iters int) error {

benchmark/bson_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
package benchmark
88

9-
import "github.com/mongodb/mongo-go-driver/bson/primitive"
9+
import "go.mongodb.org/mongo-driver/bson/primitive"
1010

1111
type flatBSONTags struct {
1212
ID primitive.ObjectID `bson:"_id"`

benchmark/harness.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// not use this file except in compliance with the License. You may obtain
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

7-
package benchmark
7+
package benchmark // import "go.mongodb.org/mongo-driver/benchmark"
88

99
import (
1010
"context"

benchmark/multi.go

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

13-
"github.com/mongodb/mongo-go-driver/x/bsonx"
13+
"go.mongodb.org/mongo-driver/x/bsonx"
1414
)
1515

1616
func MultiFindMany(ctx context.Context, tm TimerManager, iters int) error {

0 commit comments

Comments
 (0)