Skip to content
Permalink
Browse files

Update import path to go.mongodb.org/mongo-driver

GODRIVER-120

Change-Id: I59f3064384777bcde0816d2da2d1621144824e87
  • Loading branch information...
skriptble committed Feb 12, 2019
1 parent a1dceec commit b07d0220ac446e807f73bccce17d32db10efb8a1
Showing 326 changed files with 1,459 additions and 1,377 deletions.
@@ -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
@@ -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,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}"
@@ -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

@@ -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>

@@ -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"))
```
@@ -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 (
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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"`
@@ -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"
@@ -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 {
@@ -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 (
@@ -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
@@ -6,7 +6,7 @@

// +build !go1.9

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

import (
"math"
@@ -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 {
@@ -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) {
@@ -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
@@ -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() {
@@ -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
@@ -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) {
@@ -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
@@ -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"
)

Oops, something went wrong.

0 comments on commit b07d022

Please sign in to comment.
You can’t perform that action at this time.