Skip to content

Commit

Permalink
Update import paths to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-nichter committed Nov 2, 2020
1 parent 448ae73 commit 155c917
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion db/mysql/client.go
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/go-sql-driver/mysql"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/v2/db"
)

// PasswordClient sets and verifies MySQL passwords. A PasswordSetter uses a
Expand Down
4 changes: 2 additions & 2 deletions db/mysql/client_test.go
Expand Up @@ -9,8 +9,8 @@ import (
"os"
"testing"

rdb "github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/db/mysql"
rdb "github.com/square/password-rotation-lambda/v2/db"
"github.com/square/password-rotation-lambda/v2/db/mysql"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion db/mysql/setter.go
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go/service/rds"
"github.com/aws/aws-sdk-go/service/rds/rdsiface"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/v2/db"
)

func init() {
Expand Down
6 changes: 3 additions & 3 deletions db/mysql/setter_test.go
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/aws/aws-sdk-go/service/rds"
"github.com/go-test/deep"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/db/mysql"
"github.com/square/password-rotation-lambda/test"
"github.com/square/password-rotation-lambda/v2/db"
"github.com/square/password-rotation-lambda/v2/db/mysql"
"github.com/square/password-rotation-lambda/v2/test"
)

func TestPasswordSetterOne(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions examples/rds/main.go
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/aws/aws-sdk-go/service/rds"
"github.com/aws/aws-sdk-go/service/secretsmanager"

"github.com/square/password-rotation-lambda"
"github.com/square/password-rotation-lambda/db/mysql"
"github.com/square/password-rotation-lambda/v2"
"github.com/square/password-rotation-lambda/v2/db/mysql"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module github.com/square/password-rotation-lambda
module github.com/square/password-rotation-lambda/v2

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion rotate.go
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/aws/aws-sdk-go/service/secretsmanager/secretsmanageriface"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/v2/db"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions rotate_test.go
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/aws/aws-sdk-go/service/secretsmanager"
"github.com/go-test/deep"

"github.com/square/password-rotation-lambda"
"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/test"
"github.com/square/password-rotation-lambda/v2"
"github.com/square/password-rotation-lambda/v2/db"
"github.com/square/password-rotation-lambda/v2/test"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion test/mock_db.go
Expand Up @@ -5,7 +5,7 @@ package test
import (
"context"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/v2/db"
)

type MockPasswordSetter struct {
Expand Down
2 changes: 1 addition & 1 deletion test/mock_mysql.go
Expand Up @@ -5,7 +5,7 @@ package test
import (
"context"

"github.com/square/password-rotation-lambda/db"
"github.com/square/password-rotation-lambda/v2/db"
)

type MockMySQLPasswordClient struct {
Expand Down

0 comments on commit 155c917

Please sign in to comment.