Skip to content

Commit e4cd6a5

Browse files
author
Dean Karn
authored
fix go modules & update deps (#11)
1 parent b661b75 commit e4cd6a5

File tree

13 files changed

+30
-29
lines changed

13 files changed

+30
-29
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: go
22
go:
3-
- 1.12.5
3+
- 1.13.4
44
- tip
55
matrix:
66
allow_failures:
@@ -15,13 +15,12 @@ notifications:
1515
before_install:
1616
- go get -u github.com/go-playground/overalls
1717
- go get -u github.com/mattn/goveralls
18-
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.16.0
1918

2019
script:
2120
- make test
22-
- ./bin/golangci-lint run
21+
- make lint
2322

2423
after_success: |
25-
[ $TRAVIS_GO_VERSION = 1.12.5 ] &&
24+
[ $TRAVIS_GO_VERSION = 1.13.4 ] &&
2625
overalls -project="github.com/go-playground/errors" -covermode=count -ignore=.git,examples -debug &&
2726
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ GOCMD=GO111MODULE=on go
33
linters-install:
44
@golangci-lint --version >/dev/null 2>&1 || { \
55
echo "installing linting tools..."; \
6-
$(GOCMD) get github.com/golangci/golangci-lint/cmd/golangci-lint; \
6+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
77
}
88

99
lint: linters-install
10-
golangci-lint run
10+
$(PWD)/bin/golangci-lint run
1111

1212
test:
1313
$(GOCMD) test -cover -race ./...

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package errors
22
============
3-
![Project status](https://img.shields.io/badge/version-5.0.0-green.svg)
3+
![Project status](https://img.shields.io/badge/version-5.0.1-green.svg)
44
[![Build Status](https://travis-ci.org/go-playground/errors.svg?branch=master)](https://travis-ci.org/go-playground/errors)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/errors)](https://goreportcard.com/report/github.com/go-playground/errors)
66
[![GoDoc](https://godoc.org/github.com/go-playground/errors?status.svg)](https://godoc.org/github.com/go-playground/errors)
@@ -24,14 +24,14 @@ Features
2424
--------
2525
- [x] works with go-playground/log, the Tags will be added as Field Key Values and Types will be concatenated as well when using `WithError`
2626
- [x] helpers to extract and classify error types using `RegisterHelper(...)`, many already existing such as ioerrors, neterrors, awserrors...
27-
- [x] built in helpers only need to be imported, eg. `_ github.com/go-playground/errors/helpers/neterrors` allowing libraries to register their own helpers not needing the caller to do or guess what needs to be imported.
27+
- [x] built in helpers only need to be imported, eg. `_ github.com/go-playground/errors/v5/helpers/neterrors` allowing libraries to register their own helpers not needing the caller to do or guess what needs to be imported.
2828

2929
Installation
3030
------------
3131

3232
Use go get.
3333

34-
go get -u github.com/go-playground/errors
34+
go get -u github.com/go-playground/errors/v5
3535

3636
Usage
3737
-----
@@ -42,7 +42,7 @@ import (
4242
"fmt"
4343
"io"
4444

45-
"github.com/go-playground/errors"
45+
"github.com/go-playground/errors/v5"
4646
)
4747

4848
func main() {
@@ -91,7 +91,7 @@ package main
9191
import (
9292
"fmt"
9393

94-
"github.com/go-playground/errors"
94+
"github.com/go-playground/errors/v5"
9595
)
9696

9797
func main() {

_examples/basic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"io"
66

7-
"github.com/go-playground/errors"
7+
"github.com/go-playground/errors/v5"
88
)
99

1010
func main() {

_examples/helpers/built-in/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"net"
66

7-
"github.com/go-playground/errors"
7+
"github.com/go-playground/errors/v5"
88
// init function handles registration automatically
9-
_ "github.com/go-playground/errors/helpers/neterrors"
9+
_ "github.com/go-playground/errors/v5/helpers/neterrors"
1010
)
1111

1212
func main() {

_examples/helpers/custom/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net"
66

7-
"github.com/go-playground/errors"
7+
"github.com/go-playground/errors/v5"
88
)
99

1010
func main() {

_examples/stack/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
runtimeext "github.com/go-playground/pkg/runtime"
6+
runtimeext "github.com/go-playground/pkg/v4/runtime"
77
)
88

99
func main() {

chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"strings"
77

8-
runtimeext "github.com/go-playground/pkg/runtime"
8+
runtimeext "github.com/go-playground/pkg/v4/runtime"
99
)
1010

1111
// T is a shortcut to make a Tag

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module github.com/go-playground/errors
1+
module github.com/go-playground/errors/v5
22

3-
go 1.11
3+
go 1.13
44

55
require (
6-
github.com/aws/aws-sdk-go v1.19.28
7-
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d
6+
github.com/aws/aws-sdk-go v1.25.31
7+
github.com/go-playground/pkg/v4 v4.0.0
88
)

go.sum

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
github.com/aws/aws-sdk-go v1.19.28 h1:u0KMC+Qv0YVyz8YR6mREEtslSPkdUMzXgDJFD5196O8=
22
github.com/aws/aws-sdk-go v1.19.28/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
3-
github.com/go-playground/form v3.1.4+incompatible/go.mod h1:lhcKXfTuhRtIZCIKUeJ0b5F207aeQCPbZU09ScKjwWg=
4-
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d h1:dLyXECWWFoQAp49e+ayPJyTcVAVOSAEmZ/QALeOuIfg=
5-
github.com/go-playground/pkg v0.0.0-20190511145249-fa4bcb050f1d/go.mod h1:Wg1j+HqWLhhVIfYdaoOuBzdutBEVcqwvBxgFZRWbybk=
6-
github.com/go-playground/pkg v1.0.1 h1:EsBCgjDTrlaLCflFChT2Q/M4unQQS6DnBDvHTA+fVAI=
3+
github.com/aws/aws-sdk-go v1.25.31 h1:14mdh3HsTgRekePPkYcCbAaEXJknc3mN7f4XfsiMMDA=
4+
github.com/aws/aws-sdk-go v1.25.31/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
5+
github.com/go-playground/assert v1.2.1/go.mod h1:Lgy+k19nOB/wQG/fVSQ7rra5qYugmytMQqvQ2dgjWn8=
6+
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
7+
github.com/go-playground/form/v4 v4.0.0/go.mod h1:bodWfd97U9PVMZFcDsbVzSbQQTtaWrebnTwQtWjSW1M=
8+
github.com/go-playground/pkg/v4 v4.0.0 h1:0lTr9H8RyCwom4TcfNhMCNvlTlFuin7uUlXcZQuxrA4=
9+
github.com/go-playground/pkg/v4 v4.0.0/go.mod h1:TLowM3d3a/m04JlHK/zM6Ia8zf8+0C/9pTwhDEUqKO0=
710
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
8-
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=

0 commit comments

Comments
 (0)