Skip to content

Commit 13d795d

Browse files
authored
GODRIVER-2286 Make uuid package an internal package (#921)
1 parent b738a88 commit 13d795d

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

x/mongo/driver/uuid/uuid.go renamed to internal/uuid/uuid.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 uuid // import "go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
7+
package uuid
88

99
import (
1010
"io"
File renamed without changes.

mongo/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"go.mongodb.org/mongo-driver/bson"
1818
"go.mongodb.org/mongo-driver/bson/bsoncodec"
1919
"go.mongodb.org/mongo-driver/event"
20+
"go.mongodb.org/mongo-driver/internal/uuid"
2021
"go.mongodb.org/mongo-driver/mongo/description"
2122
"go.mongodb.org/mongo-driver/mongo/options"
2223
"go.mongodb.org/mongo-driver/mongo/readconcern"
@@ -29,7 +30,6 @@ import (
2930
"go.mongodb.org/mongo-driver/x/mongo/driver/operation"
3031
"go.mongodb.org/mongo-driver/x/mongo/driver/session"
3132
"go.mongodb.org/mongo-driver/x/mongo/driver/topology"
32-
"go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
3333
)
3434

3535
const defaultLocalThreshold = 15 * time.Millisecond

x/mongo/driver/operation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"go.mongodb.org/mongo-driver/bson/primitive"
1919
"go.mongodb.org/mongo-driver/internal"
2020
"go.mongodb.org/mongo-driver/internal/testutil/assert"
21+
"go.mongodb.org/mongo-driver/internal/uuid"
2122
"go.mongodb.org/mongo-driver/mongo/address"
2223
"go.mongodb.org/mongo-driver/mongo/description"
2324
"go.mongodb.org/mongo-driver/mongo/readconcern"
@@ -26,7 +27,6 @@ import (
2627
"go.mongodb.org/mongo-driver/tag"
2728
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
2829
"go.mongodb.org/mongo-driver/x/mongo/driver/session"
29-
"go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
3030
"go.mongodb.org/mongo-driver/x/mongo/driver/wiremessage"
3131
)
3232

x/mongo/driver/session/client_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import (
1313

1414
"go.mongodb.org/mongo-driver/bson"
1515
"go.mongodb.org/mongo-driver/bson/primitive"
16+
"go.mongodb.org/mongo-driver/internal/uuid"
1617
"go.mongodb.org/mongo-driver/mongo/address"
1718
"go.mongodb.org/mongo-driver/mongo/description"
1819
"go.mongodb.org/mongo-driver/mongo/readconcern"
1920
"go.mongodb.org/mongo-driver/mongo/readpref"
2021
"go.mongodb.org/mongo-driver/mongo/writeconcern"
2122
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
22-
"go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
2323
)
2424

2525
// ErrSessionEnded is returned when a client session is used after a call to endSession().

x/mongo/driver/session/client_session_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
"go.mongodb.org/mongo-driver/bson/primitive"
1515
"go.mongodb.org/mongo-driver/internal/testutil/assert"
1616
testhelpers "go.mongodb.org/mongo-driver/internal/testutil/helpers"
17+
"go.mongodb.org/mongo-driver/internal/uuid"
1718
"go.mongodb.org/mongo-driver/mongo/description"
1819
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
19-
"go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
2020
)
2121

2222
var consistent = true

x/mongo/driver/session/server_session.go

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

12+
"go.mongodb.org/mongo-driver/internal/uuid"
1213
"go.mongodb.org/mongo-driver/mongo/description"
1314
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
14-
"go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
1515
)
1616

1717
// Server is an open session with the server.

0 commit comments

Comments
 (0)