Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
"github.com/ncode/tagit/pkg/consul"
"github.com/ncode/tagit/pkg/tagit"
)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.26

require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/hashicorp/consul/api v1.34.4
github.com/hashicorp/consul/api/v2 v2.0.0
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
124 changes: 23 additions & 101 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/consul/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package consul
import (
"fmt"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
)

// Client is an interface for the Consul client.
Expand Down
2 changes: 1 addition & 1 deletion pkg/consul/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/consul/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"maps"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
)

// ServiceRegistration owns lookup and tag writes for one Consul client.
Expand Down
2 changes: 1 addition & 1 deletion pkg/consul/registration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
)

func TestServiceRegistration_Load(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tagit/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
"github.com/ncode/tagit/pkg/consul"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/tagit/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
)

func TestTagIt_ReconcileOnce(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tagit/tagit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/google/shlex"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
"github.com/ncode/tagit/pkg/consul"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/tagit/tagit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/api/v2"
"github.com/ncode/tagit/pkg/consul"
"github.com/stretchr/testify/assert"
)
Expand Down