From b6a39c6cc23cd1b3608711eb31313175568bce87 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 1 Oct 2023 17:28:13 +0200 Subject: [PATCH] chore(deps): remove deprecated pkg/errors Signed-off-by: andig --- domain/client.gen.go | 2 +- domain/templates/imports.tmpl | 2 +- go.mod | 2 +- go.sum | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/domain/client.gen.go b/domain/client.gen.go index a8e89b82..b22e0002 100644 --- a/domain/client.gen.go +++ b/domain/client.gen.go @@ -7,6 +7,7 @@ import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" "io/ioutil" @@ -16,7 +17,6 @@ import ( "strings" "github.com/deepmap/oapi-codegen/pkg/runtime" - "github.com/pkg/errors" ) // Doer performs HTTP requests. diff --git a/domain/templates/imports.tmpl b/domain/templates/imports.tmpl index f0203c17..f09c173c 100644 --- a/domain/templates/imports.tmpl +++ b/domain/templates/imports.tmpl @@ -10,6 +10,7 @@ import ( "encoding/base64" "encoding/json" "encoding/xml" + "errors" "fmt" "gopkg.in/yaml.v3" "io" @@ -26,7 +27,6 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/go-chi/chi/v5" "github.com/labstack/echo/v4" - "github.com/pkg/errors" {{- range .ExternalImports}} {{ . }} {{- end}} diff --git a/go.mod b/go.mod index c68f9b44..6c66dc95 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.17 require ( github.com/deepmap/oapi-codegen v1.8.2 github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 - github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.0 // test dependency golang.org/x/net v0.7.0 gopkg.in/yaml.v3 v3.0.1 // indirect @@ -13,5 +12,6 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pkg/errors v0.8.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect ) diff --git a/go.sum b/go.sum index c168eb90..bf0870ba 100644 --- a/go.sum +++ b/go.sum @@ -30,9 +30,8 @@ github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 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=