Skip to content

Commit

Permalink
Updating module to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-GV committed Apr 8, 2022
1 parent dbdff59 commit 0db2d1f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 16 deletions.
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module github.com/ViaQ/logerr
module github.com/ViaQ/logerr/v2

go 1.17

require (
github.com/ViaQ/logerr v1.2.0
github.com/go-logr/logr v1.2.3
github.com/stretchr/testify v1.7.1
)
Expand All @@ -12,5 +13,3 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

retract [v1.1.0, v1.1.1] // Improper versioning of breaking changes
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
github.com/ViaQ/logerr v1.2.0 h1:thSyb8Zv7xAyWFwcxW2ppj+NK6qZ1GoNOXjDSx8zWe8=
github.com/ViaQ/logerr v1.2.0/go.mod h1:DFmaWoeJeLLixbN6yK5inb0X6meEhj7XoBp1Quoj+Wk=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0=
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion kverrors/kverrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/ViaQ/logerr/internal/kv"
"github.com/ViaQ/logerr/v2/internal/kv"
)

// Keys used to log specific builtin fields
Expand Down
4 changes: 2 additions & 2 deletions kverrors/kverrors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"io"
"testing"

"github.com/ViaQ/logerr/internal/kv"
"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/v2/internal/kv"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/go-logr/logr"
)

Expand Down
6 changes: 3 additions & 3 deletions log/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"bytes"
"errors"
"fmt"
"github.com/ViaQ/logerr/internal/kv"
"github.com/ViaQ/logerr/v2/internal/kv"

"io/ioutil"
"testing"

"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/log"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/ViaQ/logerr/v2/log"
"github.com/go-logr/logr"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions log/logsink.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"time"

"github.com/ViaQ/logerr/internal/kv"
"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/v2/internal/kv"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/go-logr/logr"
)

Expand Down
4 changes: 2 additions & 2 deletions log/logsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"reflect"
"testing"

"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/log"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/ViaQ/logerr/v2/log"
"github.com/go-logr/logr"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions log/observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"
"time"

"github.com/ViaQ/logerr/kverrors"
"github.com/ViaQ/logerr/log"
"github.com/ViaQ/logerr/v2/kverrors"
"github.com/ViaQ/logerr/v2/log"
"github.com/go-logr/logr"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 0db2d1f

Please sign in to comment.