Skip to content

Commit

Permalink
fix: update Go Module Path (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 7, 2023
1 parent d568ca7 commit 6a4db81
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions cmd/tfcmt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/suzuki-shunsuke/tfcmt
module github.com/suzuki-shunsuke/tfcmt/v4

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/config.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/notifier/github/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/notifier/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/notifier/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/notifier/github/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/notifier/github/notify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/notifier/github/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/notifier/localfile/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/notifier/localfile/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/notifier/localfile/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/terraform/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 6a4db81

Please sign in to comment.