From 6a4db81f12c9073b4b87d3f0ac3584ced1e0123b Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Sun, 8 Oct 2023 07:36:00 +0900 Subject: [PATCH] fix: update Go Module Path (#952) --- cmd/tfcmt/main.go | 4 ++-- go.mod | 2 +- pkg/cli/apply.go | 4 ++-- pkg/cli/config.go | 2 +- pkg/cli/plan.go | 4 ++-- pkg/cli/var.go | 2 +- pkg/controller/apply.go | 6 +++--- pkg/controller/controller.go | 12 ++++++------ pkg/controller/plan.go | 6 +++--- pkg/notifier/github/apply.go | 4 ++-- pkg/notifier/github/client.go | 2 +- pkg/notifier/github/github_test.go | 2 +- pkg/notifier/github/label.go | 2 +- pkg/notifier/github/notify_test.go | 4 ++-- pkg/notifier/github/plan.go | 4 ++-- pkg/notifier/localfile/apply.go | 4 ++-- pkg/notifier/localfile/client.go | 2 +- pkg/notifier/localfile/plan.go | 4 ++-- pkg/platform/ci.go | 2 +- pkg/terraform/template.go | 2 +- 20 files changed, 37 insertions(+), 37 deletions(-) diff --git a/cmd/tfcmt/main.go b/cmd/tfcmt/main.go index a8863b7d..70740137 100644 --- a/cmd/tfcmt/main.go +++ b/cmd/tfcmt/main.go @@ -5,8 +5,8 @@ import ( "os" "os/signal" - "github.com/suzuki-shunsuke/tfcmt/pkg/apperr" - "github.com/suzuki-shunsuke/tfcmt/pkg/cli" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/apperr" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/cli" ) var ( diff --git a/go.mod b/go.mod index 5a5a9a20..e36252ff 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/suzuki-shunsuke/tfcmt +module github.com/suzuki-shunsuke/tfcmt/v4 go 1.19 diff --git a/pkg/cli/apply.go b/pkg/cli/apply.go index 0db9607f..2f03acfc 100644 --- a/pkg/cli/apply.go +++ b/pkg/cli/apply.go @@ -3,8 +3,8 @@ package cli import ( "os" - "github.com/suzuki-shunsuke/tfcmt/pkg/controller" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/controller" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" "github.com/urfave/cli/v2" ) diff --git a/pkg/cli/config.go b/pkg/cli/config.go index 5b6f98b7..2dd9a5e8 100644 --- a/pkg/cli/config.go +++ b/pkg/cli/config.go @@ -1,7 +1,7 @@ package cli import ( - "github.com/suzuki-shunsuke/tfcmt/pkg/config" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/config" "github.com/urfave/cli/v2" ) diff --git a/pkg/cli/plan.go b/pkg/cli/plan.go index ba76f49f..095f9475 100644 --- a/pkg/cli/plan.go +++ b/pkg/cli/plan.go @@ -3,8 +3,8 @@ package cli import ( "os" - "github.com/suzuki-shunsuke/tfcmt/pkg/controller" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/controller" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" "github.com/urfave/cli/v2" ) diff --git a/pkg/cli/var.go b/pkg/cli/var.go index c8479097..764a3e0c 100644 --- a/pkg/cli/var.go +++ b/pkg/cli/var.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/suzuki-shunsuke/tfcmt/pkg/config" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/config" "github.com/urfave/cli/v2" ) diff --git a/pkg/controller/apply.go b/pkg/controller/apply.go index 55e4f326..0e5ac5fc 100644 --- a/pkg/controller/apply.go +++ b/pkg/controller/apply.go @@ -9,9 +9,9 @@ import ( "os/exec" "github.com/mattn/go-colorable" - "github.com/suzuki-shunsuke/tfcmt/pkg/apperr" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/platform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/apperr" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/platform" ) // Apply sends the notification with notifier diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index be4f34c1..e954f524 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -6,12 +6,12 @@ import ( "fmt" "text/template" - "github.com/suzuki-shunsuke/tfcmt/pkg/config" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier/github" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier/localfile" - tmpl "github.com/suzuki-shunsuke/tfcmt/pkg/template" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/config" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier/github" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier/localfile" + tmpl "github.com/suzuki-shunsuke/tfcmt/v4/pkg/template" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) type Controller struct { diff --git a/pkg/controller/plan.go b/pkg/controller/plan.go index 83e7b6d1..a2624417 100644 --- a/pkg/controller/plan.go +++ b/pkg/controller/plan.go @@ -10,9 +10,9 @@ import ( "time" "github.com/mattn/go-colorable" - "github.com/suzuki-shunsuke/tfcmt/pkg/apperr" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/platform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/apperr" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/platform" ) // Plan sends the notification with notifier diff --git a/pkg/notifier/github/apply.go b/pkg/notifier/github/apply.go index 9d64b36d..55d2a53d 100644 --- a/pkg/notifier/github/apply.go +++ b/pkg/notifier/github/apply.go @@ -4,8 +4,8 @@ import ( "context" "github.com/sirupsen/logrus" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) // Apply posts comment optimized for notifications diff --git a/pkg/notifier/github/client.go b/pkg/notifier/github/client.go index 6557d90b..0eaae969 100644 --- a/pkg/notifier/github/client.go +++ b/pkg/notifier/github/client.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-github/v53/github" "github.com/shurcooL/githubv4" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" "golang.org/x/oauth2" ) diff --git a/pkg/notifier/github/github_test.go b/pkg/notifier/github/github_test.go index 4c0f77c4..123cf4dd 100644 --- a/pkg/notifier/github/github_test.go +++ b/pkg/notifier/github/github_test.go @@ -4,7 +4,7 @@ import ( "context" "github.com/google/go-github/v53/github" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) type fakeAPI struct { diff --git a/pkg/notifier/github/label.go b/pkg/notifier/github/label.go index 6fd70f01..d6bd513f 100644 --- a/pkg/notifier/github/label.go +++ b/pkg/notifier/github/label.go @@ -6,7 +6,7 @@ import ( "github.com/google/go-github/v53/github" "github.com/sirupsen/logrus" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) func (g *NotifyService) updateLabels(ctx context.Context, result terraform.ParseResult) []string { //nolint:cyclop diff --git a/pkg/notifier/github/notify_test.go b/pkg/notifier/github/notify_test.go index 03ac6c00..16a570d3 100644 --- a/pkg/notifier/github/notify_test.go +++ b/pkg/notifier/github/notify_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) func TestNotifyApply(t *testing.T) { diff --git a/pkg/notifier/github/plan.go b/pkg/notifier/github/plan.go index b1c4d2f6..c374c2e8 100644 --- a/pkg/notifier/github/plan.go +++ b/pkg/notifier/github/plan.go @@ -4,8 +4,8 @@ import ( "context" "github.com/sirupsen/logrus" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) // Plan posts comment optimized for notifications diff --git a/pkg/notifier/localfile/apply.go b/pkg/notifier/localfile/apply.go index c3c6e62e..5ddb554c 100644 --- a/pkg/notifier/localfile/apply.go +++ b/pkg/notifier/localfile/apply.go @@ -4,8 +4,8 @@ import ( "context" "github.com/sirupsen/logrus" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) // Apply posts comment optimized for notifications diff --git a/pkg/notifier/localfile/client.go b/pkg/notifier/localfile/client.go index 586d1d2a..f06dff64 100644 --- a/pkg/notifier/localfile/client.go +++ b/pkg/notifier/localfile/client.go @@ -3,7 +3,7 @@ package localfile import ( "context" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) // Client is a fake API client for write to local file diff --git a/pkg/notifier/localfile/plan.go b/pkg/notifier/localfile/plan.go index 1819c4ef..b0af88fe 100644 --- a/pkg/notifier/localfile/plan.go +++ b/pkg/notifier/localfile/plan.go @@ -5,8 +5,8 @@ import ( "fmt" "github.com/sirupsen/logrus" - "github.com/suzuki-shunsuke/tfcmt/pkg/notifier" - "github.com/suzuki-shunsuke/tfcmt/pkg/terraform" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/notifier" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/terraform" ) // Plan posts comment optimized for notifications diff --git a/pkg/platform/ci.go b/pkg/platform/ci.go index 960e3d89..496859ea 100644 --- a/pkg/platform/ci.go +++ b/pkg/platform/ci.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/suzuki-shunsuke/go-ci-env/v3/cienv" - "github.com/suzuki-shunsuke/tfcmt/pkg/config" + "github.com/suzuki-shunsuke/tfcmt/v4/pkg/config" ) func Complement(cfg *config.Config) error { diff --git a/pkg/terraform/template.go b/pkg/terraform/template.go index 9db9bdc5..3f00c3a6 100644 --- a/pkg/terraform/template.go +++ b/pkg/terraform/template.go @@ -6,7 +6,7 @@ import ( "strings" texttemplate "text/template" - tmpl "github.com/suzuki-shunsuke/tfcmt/pkg/template" + tmpl "github.com/suzuki-shunsuke/tfcmt/v4/pkg/template" ) const (