Skip to content

Commit

Permalink
Merge pull request #61 from ojizero/correct-v2
Browse files Browse the repository at this point in the history
Corrected import paths for V2
  • Loading branch information
Ameer A authored Jun 13, 2022
2 parents 19c177c + ea2e4ca commit 6da6d0c
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 22 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/matryer/vice
module github.com/matryer/vice/v2

go 1.17

Expand All @@ -7,6 +7,7 @@ require (
github.com/go-redis/redis v6.15.9+incompatible
github.com/gofrs/uuid v4.2.0+incompatible
github.com/matryer/is v1.4.0
github.com/matryer/vice v1.0.0
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0
github.com/nats-io/nats.go v1.15.0
github.com/nats-io/stan.go v0.10.2
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
github.com/matryer/vice v1.0.0 h1:s8ZwFErl4GSZYhYhuTtHLr3XHMO8jG+XtujnD7JolXM=
github.com/matryer/vice v1.0.0/go.mod h1:FtjaKxEaDRSDTV0FvFL2TvL0E56LdI/Q2uE/v4yyLSI=
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
Expand Down
2 changes: 1 addition & 1 deletion queues/nats/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/matryer/vice"
"github.com/matryer/vice/v2"
"github.com/nats-io/nats.go"
"github.com/nats-io/stan.go"
)
Expand Down
4 changes: 2 additions & 2 deletions queues/nats/nats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

uuid "github.com/gofrs/uuid"
"github.com/matryer/is"
"github.com/matryer/vice"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/vicetest"
"github.com/nats-io/nats.go"
"github.com/nats-io/stan.go"
)
Expand Down
2 changes: 1 addition & 1 deletion queues/nsq/nsq.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync"
"time"

"github.com/matryer/vice"
"github.com/matryer/vice/backoff"
"github.com/matryer/vice/v2"
"github.com/nsqio/go-nsq"
)

Expand Down
4 changes: 2 additions & 2 deletions queues/nsq/nsq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/matryer/is"
"github.com/matryer/vice"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/vicetest"
"github.com/nsqio/go-nsq"
)

Expand Down
2 changes: 1 addition & 1 deletion queues/rabbitmq/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package rabbitmq
import (
"sync"

"github.com/matryer/vice"
"github.com/matryer/vice/v2"
"github.com/streadway/amqp"
)

Expand Down
4 changes: 2 additions & 2 deletions queues/rabbitmq/rabbitmq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/matryer/is"
"github.com/matryer/vice"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/vicetest"
"github.com/streadway/amqp"
)

Expand Down
2 changes: 1 addition & 1 deletion queues/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/go-redis/redis"
"github.com/matryer/vice"
"github.com/matryer/vice/v2"
)

// Transport is a vice.Transport for redis.
Expand Down
4 changes: 2 additions & 2 deletions queues/redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/matryer/is"
"github.com/matryer/vice"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/vicetest"
)

func TestTransport(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion queues/sqs/multi_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/matryer/vice"
"github.com/matryer/vice/v2"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
Expand Down
6 changes: 3 additions & 3 deletions queues/sqs/multi_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

"github.com/matryer/vice"
"github.com/matryer/vice/queues/sqs/sqsfakes"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/queues/sqs/sqsfakes"
"github.com/matryer/vice/v2/vicetest"

"github.com/aws/aws-sdk-go/service/sqs"
"github.com/aws/aws-sdk-go/service/sqs/sqsiface"
Expand Down
2 changes: 1 addition & 1 deletion queues/sqs/sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/aws/aws-sdk-go/service/sqs/sqsiface"
"github.com/matryer/vice"
"github.com/matryer/vice/v2"
)

// Transport is a vice.Transport for Amazon's SQS
Expand Down
6 changes: 3 additions & 3 deletions queues/sqs/sqs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"
"time"

"github.com/matryer/vice"
"github.com/matryer/vice/queues/sqs/sqsfakes"
"github.com/matryer/vice/vicetest"
"github.com/matryer/vice/v2"
"github.com/matryer/vice/v2/queues/sqs/sqsfakes"
"github.com/matryer/vice/v2/vicetest"

"github.com/aws/aws-sdk-go/service/sqs"
"github.com/aws/aws-sdk-go/service/sqs/sqsiface"
Expand Down
2 changes: 1 addition & 1 deletion vicetest/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/matryer/is"
"github.com/matryer/vice"
"github.com/matryer/vice/v2"
)

// Transport runs standard transport tests. All Transport types pass
Expand Down

0 comments on commit 6da6d0c

Please sign in to comment.