Skip to content

Commit

Permalink
fix issue gojek#79: add /v6 module import suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
mwf authored and rShetty committed May 15, 2020
1 parent 1aedfb0 commit a006dd7
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/httpclient"
"github.com/gojektech/heimdall/hystrix"
"github.com/gojektech/heimdall/v6"
"github.com/gojektech/heimdall/v6/httpclient"
"github.com/gojektech/heimdall/v6/hystrix"
"github.com/pkg/errors"
)

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module github.com/gojektech/heimdall
module github.com/gojektech/heimdall/v6

go 1.11

require (
github.com/afex/hystrix-go v0.0.0-20180209013831-27fae8d30f1a
Expand Down
2 changes: 1 addition & 1 deletion httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/gojektech/valkyrie"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion httpclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion httpclient/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package httpclient
import (
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
)

// Option represents the client options
Expand Down
2 changes: 1 addition & 1 deletion httpclient/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions hystrix/hystrix_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package hystrix

import (
"bytes"
"github.com/gojektech/heimdall/httpclient"
"io"
"io/ioutil"
"net/http"
"time"

"github.com/afex/hystrix-go/hystrix"
"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/gojektech/heimdall/v6/httpclient"
"github.com/pkg/errors"
)

Expand Down
5 changes: 2 additions & 3 deletions hystrix/hystrix_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import (
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"

"strings"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions hystrix/options.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hystrix

import (
"github.com/gojektech/heimdall/httpclient"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
"github.com/gojektech/heimdall/v6/httpclient"
)

// Option represents the hystrix client options
Expand Down
2 changes: 1 addition & 1 deletion plugins/request_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"time"

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/v6"
)

type ctxKey string
Expand Down

0 comments on commit a006dd7

Please sign in to comment.