Skip to content

Commit

Permalink
Clean up after merging the tfmigrate-storage repository
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Aug 15, 2023
1 parent e54607c commit ab0e6b7
Show file tree
Hide file tree
Showing 31 changed files with 34 additions and 873 deletions.
2 changes: 1 addition & 1 deletion command/history_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/minamijoyo/tfmigrate-storage/mock"
"github.com/minamijoyo/tfmigrate/config"
"github.com/minamijoyo/tfmigrate/history"
"github.com/minamijoyo/tfmigrate/storage/mock"
)

func TestHistoryRunnerPlan(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion command/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/minamijoyo/tfmigrate-storage/mock"
"github.com/minamijoyo/tfmigrate/config"
"github.com/minamijoyo/tfmigrate/history"
"github.com/minamijoyo/tfmigrate/storage/mock"
)

func TestListMigrations(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/minamijoyo/tfmigrate-storage/local"
"github.com/minamijoyo/tfmigrate/history"
"github.com/minamijoyo/tfmigrate/storage/local"
)

func TestParseHistoryBlock(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions config/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/gohcl"
storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/gcs"
"github.com/minamijoyo/tfmigrate-storage/local"
"github.com/minamijoyo/tfmigrate-storage/mock"
"github.com/minamijoyo/tfmigrate-storage/s3"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/gcs"
"github.com/minamijoyo/tfmigrate/storage/local"
"github.com/minamijoyo/tfmigrate/storage/mock"
"github.com/minamijoyo/tfmigrate/storage/s3"
)

// StorageBlock represents a block for migration history data store in HCL.
Expand Down
4 changes: 2 additions & 2 deletions config/storage_gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/gcs"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/gcs"
)

func TestParseGCSStorageBlock(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/storage_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/local"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/local"
)

func TestParseLocalStorageBlock(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/storage_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/mock"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/mock"
)

func TestParseMockStorageBlock(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/storage_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/s3"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/s3"
)

func TestParseS3StorageBlock(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/local"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/local"
)

func TestParseStorageBlock(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/tfmigrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/minamijoyo/tfmigrate-storage/local"
"github.com/minamijoyo/tfmigrate/history"
"github.com/minamijoyo/tfmigrate/storage/local"
)

func TestParseConfigurationFile(t *testing.T) {
Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ module github.com/minamijoyo/tfmigrate
go 1.20

require (
cloud.google.com/go/storage v1.25.0
github.com/aws/aws-sdk-go v1.43.22
github.com/davecgh/go-spew v1.1.1
github.com/google/go-cmp v0.5.8
github.com/hashicorp/aws-sdk-go-base v1.1.0
github.com/hashicorp/go-version v1.3.0
github.com/hashicorp/hcl/v2 v2.6.0
github.com/hashicorp/logutils v1.0.0
github.com/mattn/go-shellwords v1.0.10
github.com/minamijoyo/tfmigrate-storage v0.0.0-20220824073652-6dd8f2fd2948
github.com/mitchellh/cli v1.1.1
github.com/spf13/pflag v1.0.2
)
Expand All @@ -18,20 +20,17 @@ require (
cloud.google.com/go v0.102.1 // indirect
cloud.google.com/go/compute v1.7.0 // indirect
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/storage v1.25.0 // indirect
github.com/agext/levenshtein v1.2.1 // indirect
github.com/apparentlymart/go-textseg v1.0.0 // indirect
github.com/apparentlymart/go-textseg/v12 v12.0.0 // indirect
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 // indirect
github.com/aws/aws-sdk-go v1.43.22 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
github.com/hashicorp/aws-sdk-go-base v1.1.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.0 // indirect
github.com/hashicorp/go-multierror v1.0.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-shellwords v1.0.10 h1:Y7Xqm8piKOO3v10Thp7Z36h4FYFjt5xB//6XvOrs2Gw=
github.com/mattn/go-shellwords v1.0.10/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=
github.com/minamijoyo/tfmigrate-storage v0.0.0-20220824073652-6dd8f2fd2948 h1:vlF4RA/gCl0PrcLb+eLSzwrXCJnOyXzSUy+rcukpi9c=
github.com/minamijoyo/tfmigrate-storage v0.0.0-20220824073652-6dd8f2fd2948/go.mod h1:xuoRsfW0G2VKzfGkc7vt4MCWmxZLAWyHbBax4JK9Sqg=
github.com/mitchellh/cli v1.1.1 h1:J64v/xD7Clql+JVKSvkYojLOXu1ibnY9ZjGLwSt/89w=
github.com/mitchellh/cli v1.1.1/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
Expand Down
2 changes: 1 addition & 1 deletion history/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package history

import (
storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate/storage"
)

// Config is a set of configurations for migration history management.
Expand Down
2 changes: 1 addition & 1 deletion history/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate/storage"
)

// Controller manages a migration history.
Expand Down
4 changes: 2 additions & 2 deletions history/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/google/go-cmp/cmp"
storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate-storage/mock"
"github.com/minamijoyo/tfmigrate/storage"
"github.com/minamijoyo/tfmigrate/storage/mock"
)

func TestLoadMigrationFileNames(t *testing.T) {
Expand Down
25 changes: 0 additions & 25 deletions storage/.github/workflows/lint.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions storage/.github/workflows/test.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions storage/.golangci.yml

This file was deleted.

21 changes: 0 additions & 21 deletions storage/LICENSE

This file was deleted.

14 changes: 0 additions & 14 deletions storage/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions storage/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion storage/gcs/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gcs

import storage "github.com/minamijoyo/tfmigrate-storage"
import "github.com/minamijoyo/tfmigrate/storage"

// Config is a config for Google Cloud Storage.
// This is expected to have almost the same options as Terraform gcs backend.
Expand Down
2 changes: 1 addition & 1 deletion storage/gcs/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

gcStorage "cloud.google.com/go/storage"
storage "github.com/minamijoyo/tfmigrate-storage"
"github.com/minamijoyo/tfmigrate/storage"
)

// An implementation of [storage.Storage] interface.
Expand Down
37 changes: 0 additions & 37 deletions storage/go.mod

This file was deleted.

Loading

0 comments on commit ab0e6b7

Please sign in to comment.