Skip to content

Commit

Permalink
Update import path to go.mongodb.org/mongo-driver
Browse files Browse the repository at this point in the history
GODRIVER-120

Change-Id: I59f3064384777bcde0816d2da2d1621144824e87
  • Loading branch information
skriptble committed Feb 22, 2019
1 parent a1dceec commit b07d022
Show file tree
Hide file tree
Showing 326 changed files with 1,459 additions and 1,377 deletions.
16 changes: 8 additions & 8 deletions .errcheck-excludes
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 18 additions & 18 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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}
Expand All @@ -245,21 +245,21 @@ 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:
- command: shell.exec
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}"
Expand All @@ -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
Expand All @@ -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

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center"><img src="etc/assets/mongo-gopher.png" width="250"></p>
<p align="center">
<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>
<a href="https://godoc.org/github.com/mongodb/mongo-go-driver/mongo"><img src="etc/assets/godoc-mongo-blue.svg" alt="GoDoc"></a>
<a href="https://godoc.org/github.com/mongodb/mongo-go-driver/bson"><img src="etc/assets/godoc-bson-blue.svg" alt="GoDoc"></a>
<a href="https://goreportcard.com/report/go.mongodb.org/mongo-driver"><img src="https://goreportcard.com/badge/go.mongodb.org/mongo-driver"></a>
<a href="https://godoc.org/go.mongodb.org/mongo-driver/mongo"><img src="etc/assets/godoc-mongo-blue.svg" alt="GoDoc"></a>
<a href="https://godoc.org/go.mongodb.org/mongo-driver/bson"><img src="etc/assets/godoc-bson-blue.svg" alt="GoDoc"></a>
<a href="https://docs.mongodb.com/ecosystem/drivers/go/"><img src="etc/assets/docs-mongodb-green.svg"></a>
</p>

Expand Down Expand Up @@ -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
```

-------------------------
Expand All @@ -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"))
```
Expand Down
4 changes: 2 additions & 2 deletions benchmark/bson.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion benchmark/bson_document.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/bson_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/bson_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/bson_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion benchmark/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion benchmark/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions benchmark/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions bson/bson.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bson/bson_1_8.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// +build !go1.9

package bson
package bson // import "go.mongodb.org/mongo-driver/bson"

import (
"math"
Expand Down
4 changes: 2 additions & 2 deletions bson/bson_corpus_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion bson/bson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions bson/bsoncodec/bsoncodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions bson/bsoncodec/bsoncodec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions bson/bsoncodec/default_value_decoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions bson/bsoncodec/default_value_decoders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions bson/bsoncodec/default_value_encoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions bson/bsoncodec/default_value_encoders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
Loading

0 comments on commit b07d022

Please sign in to comment.