Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove github.com/pkg/errors dependency #151

Merged
merged 1 commit into from
Dec 30, 2022
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 go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/jackc/pgx/v4 v4.16.1
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.6
github.com/pkg/errors v0.9.1
github.com/pkg/errors v0.9.1 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect
Expand Down
4 changes: 1 addition & 3 deletions testserver/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"regexp"
"strconv"
"strings"

"github.com/pkg/errors"
)

// Version represents a semantic version; see
Expand Down Expand Up @@ -92,7 +90,7 @@ var numericRE = regexp.MustCompile(`^(0|[1-9][0-9]*)$`)
// dots.
func Parse(str string) (*Version, error) {
if !versionRE.MatchString(str) {
return nil, errors.Errorf("invalid version string '%s'", str)
return nil, fmt.Errorf("invalid version string '%s'", str)
}

var v Version
Expand Down