From e8377c0a016dec2ebc989382bd58b5a815942e92 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:01:23 +0000 Subject: [PATCH] fix(deps): update module golang.org/x/sync to v0.7.0 --- go.mod | 2 +- go.sum | 2 ++ vendor/golang.org/x/sync/singleflight/singleflight.go | 9 +++++++++ vendor/modules.txt | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fb8b8824..71adb812 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/prometheus/client_model v0.3.0 github.com/twpayne/go-geos v0.13.2 github.com/valyala/fasthttp v1.45.0 - golang.org/x/sync v0.2.0 + golang.org/x/sync v0.7.0 ) require ( diff --git a/go.sum b/go.sum index 87a4b738..26309447 100644 --- a/go.sum +++ b/go.sum @@ -99,6 +99,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/vendor/golang.org/x/sync/singleflight/singleflight.go b/vendor/golang.org/x/sync/singleflight/singleflight.go index 8473fb79..40518309 100644 --- a/vendor/golang.org/x/sync/singleflight/singleflight.go +++ b/vendor/golang.org/x/sync/singleflight/singleflight.go @@ -31,6 +31,15 @@ func (p *panicError) Error() string { return fmt.Sprintf("%v\n\n%s", p.value, p.stack) } +func (p *panicError) Unwrap() error { + err, ok := p.value.(error) + if !ok { + return nil + } + + return err +} + func newPanicError(v interface{}) error { stack := debug.Stack() diff --git a/vendor/modules.txt b/vendor/modules.txt index 67d9501d..777f5ef7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -128,8 +128,8 @@ github.com/valyala/fasthttp/stackless # github.com/valyala/tcplisten v1.0.0 ## explicit; go 1.12 github.com/valyala/tcplisten -# golang.org/x/sync v0.2.0 -## explicit +# golang.org/x/sync v0.7.0 +## explicit; go 1.18 golang.org/x/sync/singleflight # golang.org/x/sys v0.8.0 ## explicit; go 1.17