From 96293ce366a377c99e4ee080dd4367675e42c138 Mon Sep 17 00:00:00 2001 From: cornelk Date: Mon, 31 Oct 2022 23:34:34 -0600 Subject: [PATCH] remove github.com/pkg/errors dependency --- go.mod | 2 +- testserver/version/version.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 945846d..e30bdbf 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/testserver/version/version.go b/testserver/version/version.go index 3a1eeba..bc84d7f 100644 --- a/testserver/version/version.go +++ b/testserver/version/version.go @@ -20,8 +20,6 @@ import ( "regexp" "strconv" "strings" - - "github.com/pkg/errors" ) // Version represents a semantic version; see @@ -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