Skip to content

Commit

Permalink
update go module to /v5
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Mar 8, 2024
1 parent 6a884fc commit 1efc6b5
Show file tree
Hide file tree
Showing 94 changed files with 284 additions and 245 deletions.
10 changes: 5 additions & 5 deletions cmd/alter/alter-partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package alter
import (
"strconv"

"github.com/deviceinsight/kafkactl/cmd/validation"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/partition"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/cmd/validation"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/partition"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/alter/alter-partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"gopkg.in/errgo.v2/fmt/errors"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/alter/alter-topic.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package alter

import (
"github.com/deviceinsight/kafkactl/cmd/validation"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/cmd/validation"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/alter/alter-topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"gopkg.in/errgo.v2/fmt/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/attach/attach.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package attach

import (
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/clone/clone-consumergroup.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package clone

import (
"github.com/deviceinsight/kafkactl/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/internal/consumergroups"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroups"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/clone/clone-consumergroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestCloneConsumerGroupIntegration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/clone/clone-topic.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package clone

import (
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/clone/clone-topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/Rican7/retry/strategy"
"gopkg.in/errgo.v2/fmt/errors"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
)

func TestCloneTopicIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"os"

"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/config/currentContext.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package config

import (
"github.com/deviceinsight/kafkactl/internal/global"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/global"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/config/getContexts.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package config

import (
"github.com/deviceinsight/kafkactl/internal/global"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/global"
"github.com/deviceinsight/kafkactl/v5/internal/output"

"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
4 changes: 2 additions & 2 deletions cmd/config/useContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package config
import (
"sort"

"github.com/deviceinsight/kafkactl/internal/global"
"github.com/deviceinsight/kafkactl/v5/internal/global"

"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/pkg/errors"

"strings"
Expand Down
2 changes: 1 addition & 1 deletion cmd/config/useContext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestUseContextAutoCompletionIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/config/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
"os"

"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
4 changes: 2 additions & 2 deletions cmd/config/view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"path"
"testing"

"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestViewConfigWithEnvVariablesInGeneratedConfigSet(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions cmd/consume/consume.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package consume

import (
"github.com/deviceinsight/kafkactl/internal/consume"
"github.com/deviceinsight/kafkactl/internal/consumergroups"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/consume"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroups"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/consume/consume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"
"time"

"github.com/deviceinsight/kafkactl/internal/helpers/protobuf"
"github.com/deviceinsight/kafkactl/v5/internal/helpers/protobuf"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/jhump/protoreflect/dynamic"
"google.golang.org/protobuf/types/known/timestamppb"
)
Expand Down
10 changes: 5 additions & 5 deletions cmd/create/create-acl.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package create

import (
"github.com/deviceinsight/kafkactl/internal/acl"
"github.com/deviceinsight/kafkactl/internal/consumergroups"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/acl"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroups"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/create/create-acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestCreateTopicReadAclIntegration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/create/create-consumergroup.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package create

import (
"github.com/deviceinsight/kafkactl/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/create/create-topic.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package create

import (
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/create/create-topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestCreateTopicWithoutFlagsIntegration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/deletion/delete-acl.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package deletion

import (
"github.com/deviceinsight/kafkactl/internal/acl"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/acl"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/deletion/delete-acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestDeleteTopicReadAclIntegration(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/deletion/delete-consumer-group-offset.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package deletion

import (
"github.com/deviceinsight/kafkactl/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/internal/consumergroups"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroupoffsets"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroups"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/deletion/delete-consumer-group-offset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/util"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/util"
"github.com/pkg/errors"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/deletion/delete-consumer-group.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package deletion

import (
"github.com/deviceinsight/kafkactl/internal/consumergroups"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/consumergroups"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/deletion/delete-consumer-group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/util"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/util"
)

func TestDeleteSingleConsumerGroupIntegration(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/deletion/delete-records.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package deletion

import (
"github.com/deviceinsight/kafkactl/cmd/validation"
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/cmd/validation"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/deletion/delete-records_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
)

func TestDeleteRecordsIntegration(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/deletion/delete-topic.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package deletion

import (
"github.com/deviceinsight/kafkactl/internal/k8s"
"github.com/deviceinsight/kafkactl/internal/output"
"github.com/deviceinsight/kafkactl/internal/topic"
"github.com/deviceinsight/kafkactl/v5/internal/k8s"
"github.com/deviceinsight/kafkactl/v5/internal/output"
"github.com/deviceinsight/kafkactl/v5/internal/topic"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/deletion/delete-topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/backoff"
"github.com/Rican7/retry/strategy"
"github.com/deviceinsight/kafkactl/internal/testutil"
"github.com/deviceinsight/kafkactl/internal/util"
"github.com/deviceinsight/kafkactl/v5/internal/testutil"
"github.com/deviceinsight/kafkactl/v5/internal/util"
)

func TestDeleteSingleTopicIntegration(t *testing.T) {
Expand Down
Loading

0 comments on commit 1efc6b5

Please sign in to comment.