From fd16abcc4f12b8350d8802746a57a51a2b4a88f8 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 12 Oct 2023 05:23:07 +0200 Subject: [PATCH] chore(deps): remove deprecated pkg/errors (#386) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): remove deprecated pkg/errors Signed-off-by: andig * Add Changelog * docs: Update CHANGELOG.md * docs: Update CHANGELOG.md --------- Signed-off-by: andig Co-authored-by: Jakub Bednář --- CHANGELOG.md | 5 +++++ domain/client.gen.go | 2 +- domain/templates/imports.tmpl | 2 +- go.mod | 1 - go.sum | 2 -- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55333b82..a80a8888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## [unreleased] +### Bug fixes + +- [#386](https://github.com/influxdata/influxdb-client-go/pull/386) Remove deprecated pkg/errors +- [#387](https://github.com/influxdata/influxdb-client-go/pull/387) Upgrade deepmap/oapi-codegen + ## 2.12.3 [2023-03-29] ### Bug fixes - Update golang.org/x/net from 0.0.0-20210119194325-5f4716e94777 to 0.7.0 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 5d7b7f88..1617eb7e 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.17 require ( github.com/deepmap/oapi-codegen v1.12.4 github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 - github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.1 // test dependency golang.org/x/net v0.7.0 ) diff --git a/go.sum b/go.sum index 6b380c70..d76dbe1d 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,6 @@ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 h1:W9WBk7wlPfJLvMCdtV4zPulc4uCPrlywQOmbFOhgQNU= github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= -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/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=