mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Update goleak from v1.2.1 to v1.3.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
parent
be62153915
commit
5405dd0f9b
2
go.mod
2
go.mod
@ -76,7 +76,7 @@ require (
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0
|
go.opentelemetry.io/otel/sdk v1.19.0
|
||||||
go.opentelemetry.io/otel/trace v1.19.0
|
go.opentelemetry.io/otel/trace v1.19.0
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0
|
go.opentelemetry.io/proto/otlp v1.0.0
|
||||||
go.uber.org/goleak v1.2.1
|
go.uber.org/goleak v1.3.0
|
||||||
go.uber.org/zap v1.26.0
|
go.uber.org/zap v1.26.0
|
||||||
golang.org/x/crypto v0.16.0
|
golang.org/x/crypto v0.16.0
|
||||||
golang.org/x/net v0.19.0
|
golang.org/x/net v0.19.0
|
||||||
|
4
go.sum
4
go.sum
@ -845,8 +845,8 @@ go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93V
|
|||||||
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds=
|
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds=
|
||||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
|
@ -388,8 +388,8 @@ go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lI
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
|
4
staging/src/k8s.io/apiserver/go.sum
generated
4
staging/src/k8s.io/apiserver/go.sum
generated
@ -387,8 +387,8 @@ go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lI
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
|
4
staging/src/k8s.io/cloud-provider/go.sum
generated
4
staging/src/k8s.io/cloud-provider/go.sum
generated
@ -347,8 +347,8 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
@ -62,6 +62,7 @@ require (
|
|||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
|
||||||
go.opentelemetry.io/otel/metric v1.19.0 // indirect
|
go.opentelemetry.io/otel/metric v1.19.0 // indirect
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
|
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
|
||||||
|
go.uber.org/goleak v1.3.0 // indirect
|
||||||
go.uber.org/multierr v1.11.0 // indirect
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
golang.org/x/net v0.19.0 // indirect
|
golang.org/x/net v0.19.0 // indirect
|
||||||
golang.org/x/oauth2 v0.10.0 // indirect
|
golang.org/x/oauth2 v0.10.0 // indirect
|
||||||
|
4
staging/src/k8s.io/component-base/go.sum
generated
4
staging/src/k8s.io/component-base/go.sum
generated
@ -167,8 +167,8 @@ go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1
|
|||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
4
staging/src/k8s.io/controller-manager/go.sum
generated
4
staging/src/k8s.io/controller-manager/go.sum
generated
@ -343,8 +343,8 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
1
staging/src/k8s.io/endpointslice/go.sum
generated
1
staging/src/k8s.io/endpointslice/go.sum
generated
@ -136,6 +136,7 @@ go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
4
staging/src/k8s.io/kube-aggregator/go.sum
generated
4
staging/src/k8s.io/kube-aggregator/go.sum
generated
@ -352,8 +352,8 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
@ -99,6 +99,7 @@ go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
1
staging/src/k8s.io/kube-proxy/go.sum
generated
1
staging/src/k8s.io/kube-proxy/go.sum
generated
@ -105,6 +105,7 @@ go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
1
staging/src/k8s.io/kube-scheduler/go.sum
generated
1
staging/src/k8s.io/kube-scheduler/go.sum
generated
@ -80,6 +80,7 @@ go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
1
staging/src/k8s.io/kubectl/go.sum
generated
1
staging/src/k8s.io/kubectl/go.sum
generated
@ -208,6 +208,7 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93VanwNIi5bIKnDrJdEY=
|
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca h1:VdD38733bfYv5tUZwEIskMM93VanwNIi5bIKnDrJdEY=
|
||||||
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds=
|
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
1
staging/src/k8s.io/kubelet/go.sum
generated
1
staging/src/k8s.io/kubelet/go.sum
generated
@ -166,6 +166,7 @@ go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319
|
|||||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
1
staging/src/k8s.io/legacy-cloud-providers/go.sum
generated
1
staging/src/k8s.io/legacy-cloud-providers/go.sum
generated
@ -369,6 +369,7 @@ go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+Gf
|
|||||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||||
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
4
staging/src/k8s.io/pod-security-admission/go.sum
generated
4
staging/src/k8s.io/pod-security-admission/go.sum
generated
@ -343,8 +343,8 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
4
staging/src/k8s.io/sample-apiserver/go.sum
generated
4
staging/src/k8s.io/sample-apiserver/go.sum
generated
@ -348,8 +348,8 @@ go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmY
|
|||||||
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
|
||||||
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
|
||||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
|
||||||
|
28
vendor/go.uber.org/goleak/.golangci.yml
generated
vendored
Normal file
28
vendor/go.uber.org/goleak/.golangci.yml
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
output:
|
||||||
|
# Make output more digestible with quickfix in vim/emacs/etc.
|
||||||
|
sort-results: true
|
||||||
|
print-issued-lines: false
|
||||||
|
|
||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- gofumpt
|
||||||
|
- nolintlint
|
||||||
|
- revive
|
||||||
|
|
||||||
|
linters-settings:
|
||||||
|
govet:
|
||||||
|
# These govet checks are disabled by default, but they're useful.
|
||||||
|
enable:
|
||||||
|
- niliness
|
||||||
|
- reflectvaluecompare
|
||||||
|
- sortslice
|
||||||
|
- unusedwrite
|
||||||
|
|
||||||
|
issues:
|
||||||
|
# Print all issues reported by all linters.
|
||||||
|
max-issues-per-linter: 0
|
||||||
|
max-same-issues: 0
|
||||||
|
|
||||||
|
# Don't ignore some of the issues that golangci-lint considers okay.
|
||||||
|
# This includes documenting all exported entities.
|
||||||
|
exclude-use-default: false
|
15
vendor/go.uber.org/goleak/CHANGELOG.md
generated
vendored
15
vendor/go.uber.org/goleak/CHANGELOG.md
generated
vendored
@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.3.0]
|
||||||
|
### Fixed
|
||||||
|
- Built-in ignores now match function names more accurately.
|
||||||
|
They will no longer ignore stacks because of file names
|
||||||
|
that look similar to function names. (#112)
|
||||||
|
### Added
|
||||||
|
- Add an `IgnoreAnyFunction` option to ignore stack traces
|
||||||
|
that have the provided function anywhere in the stack. (#113)
|
||||||
|
- Ignore `testing.runFuzzing` and `testing.runFuzzTests` alongside
|
||||||
|
other already-ignored test functions (`testing.RunTests`, etc). (#105)
|
||||||
|
### Changed
|
||||||
|
- Miscellaneous CI-related fixes. (#103, #108, #114)
|
||||||
|
|
||||||
|
[1.3.0]: https://github.com/uber-go/goleak/compare/v1.2.1...v1.3.0
|
||||||
|
|
||||||
## [1.2.1]
|
## [1.2.1]
|
||||||
### Changed
|
### Changed
|
||||||
- Drop golang/x/lint dependency.
|
- Drop golang/x/lint dependency.
|
||||||
|
50
vendor/go.uber.org/goleak/Makefile
generated
vendored
50
vendor/go.uber.org/goleak/Makefile
generated
vendored
@ -1,19 +1,26 @@
|
|||||||
export GOBIN ?= $(shell pwd)/bin
|
# Directory containing the Makefile.
|
||||||
|
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
REVIVE = $(GOBIN)/revive
|
export GOBIN = $(PROJECT_ROOT)/bin
|
||||||
|
export PATH := $(GOBIN):$(PATH)
|
||||||
|
|
||||||
GO_FILES := $(shell \
|
GO_FILES = $(shell find . \
|
||||||
find . '(' -path '*/.*' -o -path './vendor' ')' -prune \
|
-path '*/.*' -prune -o \
|
||||||
-o -name '*.go' -print | cut -b3-)
|
'(' -type f -a -name '*.go' ')' -print)
|
||||||
|
|
||||||
|
# Additional test flags.
|
||||||
|
TEST_FLAGS ?=
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: lint build test
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
|
lint: golangci-lint tidy-lint
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
go build ./...
|
go build ./...
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
go mod download
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
go test -v -race ./...
|
go test -v -race ./...
|
||||||
@ -24,18 +31,15 @@ cover:
|
|||||||
go test -race -coverprofile=cover.out -coverpkg=./... ./...
|
go test -race -coverprofile=cover.out -coverpkg=./... ./...
|
||||||
go tool cover -html=cover.out -o cover.html
|
go tool cover -html=cover.out -o cover.html
|
||||||
|
|
||||||
$(REVIVE):
|
.PHONY: golangci-lint
|
||||||
cd tools && go install github.com/mgechev/revive
|
golangci-lint:
|
||||||
|
golangci-lint run
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: tidy
|
||||||
lint: $(REVIVE)
|
tidy:
|
||||||
@rm -rf lint.log
|
go mod tidy
|
||||||
@echo "Checking formatting..."
|
|
||||||
@gofmt -d -s $(GO_FILES) 2>&1 | tee lint.log
|
.PHONY: tidy-lint
|
||||||
@echo "Checking vet..."
|
tidy-lint:
|
||||||
@go vet ./... 2>&1 | tee -a lint.log
|
go mod tidy
|
||||||
@echo "Checking lint..."
|
git diff --exit-code -- go.mod go.sum
|
||||||
@$(REVIVE) -set_exit_status ./... 2>&1 | tee -a lint.log
|
|
||||||
@echo "Checking for unresolved FIXMEs..."
|
|
||||||
@git grep -i fixme | grep -v -e '^vendor/' -e '^Makefile' | tee -a lint.log
|
|
||||||
@[ ! -s lint.log ]
|
|
||||||
|
4
vendor/go.uber.org/goleak/README.md
generated
vendored
4
vendor/go.uber.org/goleak/README.md
generated
vendored
@ -67,8 +67,8 @@ No breaking changes will be made to exported APIs before 2.0.
|
|||||||
|
|
||||||
[doc-img]: https://godoc.org/go.uber.org/goleak?status.svg
|
[doc-img]: https://godoc.org/go.uber.org/goleak?status.svg
|
||||||
[doc]: https://godoc.org/go.uber.org/goleak
|
[doc]: https://godoc.org/go.uber.org/goleak
|
||||||
[ci-img]: https://github.com/uber-go/goleak/actions/workflows/go.yml/badge.svg
|
[ci-img]: https://github.com/uber-go/goleak/actions/workflows/ci.yml/badge.svg
|
||||||
[ci]: https://github.com/uber-go/goleak/actions/workflows/go.yml
|
[ci]: https://github.com/uber-go/goleak/actions/workflows/ci.yml
|
||||||
[cov-img]: https://codecov.io/gh/uber-go/goleak/branch/master/graph/badge.svg
|
[cov-img]: https://codecov.io/gh/uber-go/goleak/branch/master/graph/badge.svg
|
||||||
[cov]: https://codecov.io/gh/uber-go/goleak
|
[cov]: https://codecov.io/gh/uber-go/goleak
|
||||||
[release]: https://go.dev/doc/devel/release#policy
|
[release]: https://go.dev/doc/devel/release#policy
|
||||||
|
8
vendor/go.uber.org/goleak/glide.yaml
generated
vendored
8
vendor/go.uber.org/goleak/glide.yaml
generated
vendored
@ -1,8 +0,0 @@
|
|||||||
package: go.uber.org/goleak
|
|
||||||
import: []
|
|
||||||
testImport:
|
|
||||||
- package: github.com/stretchr/testify
|
|
||||||
version: ^1.1.4
|
|
||||||
subpackages:
|
|
||||||
- assert
|
|
||||||
- require
|
|
56
vendor/go.uber.org/goleak/internal/stack/scan.go
generated
vendored
Normal file
56
vendor/go.uber.org/goleak/internal/stack/scan.go
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
// Copyright (c) 2023 Uber Technologies, Inc.
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
// of this software and associated documentation files (the "Software"), to deal
|
||||||
|
// in the Software without restriction, including without limitation the rights
|
||||||
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
// copies of the Software, and to permit persons to whom the Software is
|
||||||
|
// furnished to do so, subject to the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included in
|
||||||
|
// all copies or substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
// THE SOFTWARE.
|
||||||
|
|
||||||
|
package stack
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
// scanner provides a bufio.Scanner the ability to Unscan,
|
||||||
|
// which allows the current token to be read again
|
||||||
|
// after the next Scan.
|
||||||
|
type scanner struct {
|
||||||
|
*bufio.Scanner
|
||||||
|
|
||||||
|
unscanned bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func newScanner(r io.Reader) *scanner {
|
||||||
|
return &scanner{Scanner: bufio.NewScanner(r)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *scanner) Scan() bool {
|
||||||
|
if s.unscanned {
|
||||||
|
s.unscanned = false
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return s.Scanner.Scan()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Unscan stops the scanner from advancing its position
|
||||||
|
// for the next Scan.
|
||||||
|
//
|
||||||
|
// Bytes and Text will return the same token after next Scan
|
||||||
|
// that they do right now.
|
||||||
|
func (s *scanner) Unscan() {
|
||||||
|
s.unscanned = true
|
||||||
|
}
|
249
vendor/go.uber.org/goleak/internal/stack/stacks.go
generated
vendored
249
vendor/go.uber.org/goleak/internal/stack/stacks.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2017 Uber Technologies, Inc.
|
// Copyright (c) 2017-2023 Uber Technologies, Inc.
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
// of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -21,8 +21,8 @@
|
|||||||
package stack
|
package stack
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"runtime"
|
"runtime"
|
||||||
@ -34,10 +34,17 @@ const _defaultBufferSize = 64 * 1024 // 64 KiB
|
|||||||
|
|
||||||
// Stack represents a single Goroutine's stack.
|
// Stack represents a single Goroutine's stack.
|
||||||
type Stack struct {
|
type Stack struct {
|
||||||
id int
|
id int
|
||||||
state string
|
state string // e.g. 'running', 'chan receive'
|
||||||
|
|
||||||
|
// The first function on the stack.
|
||||||
firstFunction string
|
firstFunction string
|
||||||
fullStack *bytes.Buffer
|
|
||||||
|
// A set of all functions in the stack,
|
||||||
|
allFunctions map[string]struct{}
|
||||||
|
|
||||||
|
// Full, raw stack trace.
|
||||||
|
fullStack string
|
||||||
}
|
}
|
||||||
|
|
||||||
// ID returns the goroutine ID.
|
// ID returns the goroutine ID.
|
||||||
@ -52,7 +59,7 @@ func (s Stack) State() string {
|
|||||||
|
|
||||||
// Full returns the full stack trace for this goroutine.
|
// Full returns the full stack trace for this goroutine.
|
||||||
func (s Stack) Full() string {
|
func (s Stack) Full() string {
|
||||||
return s.fullStack.String()
|
return s.fullStack
|
||||||
}
|
}
|
||||||
|
|
||||||
// FirstFunction returns the name of the first function on the stack.
|
// FirstFunction returns the name of the first function on the stack.
|
||||||
@ -60,6 +67,13 @@ func (s Stack) FirstFunction() string {
|
|||||||
return s.firstFunction
|
return s.firstFunction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HasFunction reports whether the stack has the given function
|
||||||
|
// anywhere in it.
|
||||||
|
func (s Stack) HasFunction(name string) bool {
|
||||||
|
_, ok := s.allFunctions[name]
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
func (s Stack) String() string {
|
func (s Stack) String() string {
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"Goroutine %v in state %v, with %v on top of the stack:\n%s",
|
"Goroutine %v in state %v, with %v on top of the stack:\n%s",
|
||||||
@ -67,47 +81,149 @@ func (s Stack) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getStacks(all bool) []Stack {
|
func getStacks(all bool) []Stack {
|
||||||
var stacks []Stack
|
trace := getStackBuffer(all)
|
||||||
|
stacks, err := newStackParser(bytes.NewReader(trace)).Parse()
|
||||||
var curStack *Stack
|
if err != nil {
|
||||||
stackReader := bufio.NewReader(bytes.NewReader(getStackBuffer(all)))
|
// Well-formed stack traces should never fail to parse.
|
||||||
for {
|
// If they do, it's a bug in this package.
|
||||||
line, err := stackReader.ReadString('\n')
|
// Panic so we can fix it.
|
||||||
if err == io.EOF {
|
panic(fmt.Sprintf("Failed to parse stack trace: %v\n%s", err, trace))
|
||||||
break
|
|
||||||
}
|
|
||||||
if err != nil {
|
|
||||||
// We're reading using bytes.NewReader which should never fail.
|
|
||||||
panic("bufio.NewReader failed on a fixed string")
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we see the goroutine header, start a new stack.
|
|
||||||
isFirstLine := false
|
|
||||||
if strings.HasPrefix(line, "goroutine ") {
|
|
||||||
// flush any previous stack
|
|
||||||
if curStack != nil {
|
|
||||||
stacks = append(stacks, *curStack)
|
|
||||||
}
|
|
||||||
id, goState := parseGoStackHeader(line)
|
|
||||||
curStack = &Stack{
|
|
||||||
id: id,
|
|
||||||
state: goState,
|
|
||||||
fullStack: &bytes.Buffer{},
|
|
||||||
}
|
|
||||||
isFirstLine = true
|
|
||||||
}
|
|
||||||
curStack.fullStack.WriteString(line)
|
|
||||||
if !isFirstLine && curStack.firstFunction == "" {
|
|
||||||
curStack.firstFunction = parseFirstFunc(line)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if curStack != nil {
|
|
||||||
stacks = append(stacks, *curStack)
|
|
||||||
}
|
}
|
||||||
return stacks
|
return stacks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type stackParser struct {
|
||||||
|
scan *scanner
|
||||||
|
stacks []Stack
|
||||||
|
errors []error
|
||||||
|
}
|
||||||
|
|
||||||
|
func newStackParser(r io.Reader) *stackParser {
|
||||||
|
return &stackParser{
|
||||||
|
scan: newScanner(r),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *stackParser) Parse() ([]Stack, error) {
|
||||||
|
for p.scan.Scan() {
|
||||||
|
line := p.scan.Text()
|
||||||
|
|
||||||
|
// If we see the goroutine header, start a new stack.
|
||||||
|
if strings.HasPrefix(line, "goroutine ") {
|
||||||
|
stack, err := p.parseStack(line)
|
||||||
|
if err != nil {
|
||||||
|
p.errors = append(p.errors, err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
p.stacks = append(p.stacks, stack)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p.errors = append(p.errors, p.scan.Err())
|
||||||
|
return p.stacks, errors.Join(p.errors...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseStack parses a single stack trace from the given scanner.
|
||||||
|
// line is the first line of the stack trace, which should look like:
|
||||||
|
//
|
||||||
|
// goroutine 123 [runnable]:
|
||||||
|
func (p *stackParser) parseStack(line string) (Stack, error) {
|
||||||
|
id, state, err := parseGoStackHeader(line)
|
||||||
|
if err != nil {
|
||||||
|
return Stack{}, fmt.Errorf("parse header: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read the rest of the stack trace.
|
||||||
|
var (
|
||||||
|
firstFunction string
|
||||||
|
fullStack bytes.Buffer
|
||||||
|
)
|
||||||
|
funcs := make(map[string]struct{})
|
||||||
|
for p.scan.Scan() {
|
||||||
|
line := p.scan.Text()
|
||||||
|
if strings.HasPrefix(line, "goroutine ") {
|
||||||
|
// If we see the goroutine header,
|
||||||
|
// it's the end of this stack.
|
||||||
|
// Unscan so the next Scan sees the same line.
|
||||||
|
p.scan.Unscan()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
fullStack.WriteString(line)
|
||||||
|
fullStack.WriteByte('\n') // scanner trims the newline
|
||||||
|
|
||||||
|
if len(line) == 0 {
|
||||||
|
// Empty line usually marks the end of the stack
|
||||||
|
// but we don't want to have to rely on that.
|
||||||
|
// Just skip it.
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
funcName, creator, err := parseFuncName(line)
|
||||||
|
if err != nil {
|
||||||
|
return Stack{}, fmt.Errorf("parse function: %w", err)
|
||||||
|
}
|
||||||
|
if !creator {
|
||||||
|
// A function is part of a goroutine's stack
|
||||||
|
// only if it's not a "created by" function.
|
||||||
|
//
|
||||||
|
// The creator function is part of a different stack.
|
||||||
|
// We don't care about it right now.
|
||||||
|
funcs[funcName] = struct{}{}
|
||||||
|
if firstFunction == "" {
|
||||||
|
firstFunction = funcName
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// The function name followed by a line in the form:
|
||||||
|
//
|
||||||
|
// <tab>example.com/path/to/package/file.go:123 +0x123
|
||||||
|
//
|
||||||
|
// We don't care about the position so we can skip this line.
|
||||||
|
if p.scan.Scan() {
|
||||||
|
// Be defensive:
|
||||||
|
// Skip the line only if it starts with a tab.
|
||||||
|
bs := p.scan.Bytes()
|
||||||
|
if len(bs) > 0 && bs[0] == '\t' {
|
||||||
|
fullStack.Write(bs)
|
||||||
|
fullStack.WriteByte('\n')
|
||||||
|
} else {
|
||||||
|
// Put it back and let the next iteration handle it
|
||||||
|
// if it doesn't start with a tab.
|
||||||
|
p.scan.Unscan()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if creator {
|
||||||
|
// The "created by" line is the last line of the stack.
|
||||||
|
// We can stop parsing now.
|
||||||
|
//
|
||||||
|
// Note that if tracebackancestors=N is set,
|
||||||
|
// there may be more a traceback of the creator function
|
||||||
|
// following the "created by" line,
|
||||||
|
// but it should not be considered part of this stack.
|
||||||
|
// e.g.,
|
||||||
|
//
|
||||||
|
// created by testing.(*T).Run in goroutine 1
|
||||||
|
// /usr/lib/go/src/testing/testing.go:1648 +0x3ad
|
||||||
|
// [originating from goroutine 1]:
|
||||||
|
// testing.(*T).Run(...)
|
||||||
|
// /usr/lib/go/src/testing/testing.go:1649 +0x3ad
|
||||||
|
//
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return Stack{
|
||||||
|
id: id,
|
||||||
|
state: state,
|
||||||
|
firstFunction: firstFunction,
|
||||||
|
allFunctions: funcs,
|
||||||
|
fullStack: fullStack.String(),
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
// All returns the stacks for all running goroutines.
|
// All returns the stacks for all running goroutines.
|
||||||
func All() []Stack {
|
func All() []Stack {
|
||||||
return getStacks(true)
|
return getStacks(true)
|
||||||
@ -127,29 +243,56 @@ func getStackBuffer(all bool) []byte {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseFirstFunc(line string) string {
|
// Parses a single function from the given line.
|
||||||
line = strings.TrimSpace(line)
|
// The line is in one of these formats:
|
||||||
if idx := strings.LastIndex(line, "("); idx > 0 {
|
//
|
||||||
return line[:idx]
|
// example.com/path/to/package.funcName(args...)
|
||||||
|
// example.com/path/to/package.(*typeName).funcName(args...)
|
||||||
|
// created by example.com/path/to/package.funcName
|
||||||
|
// created by example.com/path/to/package.funcName in goroutine [...]
|
||||||
|
//
|
||||||
|
// Also reports whether the line was a "created by" line.
|
||||||
|
func parseFuncName(line string) (name string, creator bool, err error) {
|
||||||
|
if after, ok := strings.CutPrefix(line, "created by "); ok {
|
||||||
|
// The function name is the part after "created by "
|
||||||
|
// and before " in goroutine [...]".
|
||||||
|
idx := strings.Index(after, " in goroutine")
|
||||||
|
if idx >= 0 {
|
||||||
|
after = after[:idx]
|
||||||
|
}
|
||||||
|
name = after
|
||||||
|
creator = true
|
||||||
|
} else if idx := strings.LastIndexByte(line, '('); idx >= 0 {
|
||||||
|
// The function name is the part before the last '('.
|
||||||
|
name = line[:idx]
|
||||||
}
|
}
|
||||||
panic(fmt.Sprintf("function calls missing parents: %q", line))
|
|
||||||
|
if name == "" {
|
||||||
|
return "", false, fmt.Errorf("no function found: %q", line)
|
||||||
|
}
|
||||||
|
|
||||||
|
return name, creator, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseGoStackHeader parses a stack header that looks like:
|
// parseGoStackHeader parses a stack header that looks like:
|
||||||
// goroutine 643 [runnable]:\n
|
// goroutine 643 [runnable]:\n
|
||||||
// And returns the goroutine ID, and the state.
|
// And returns the goroutine ID, and the state.
|
||||||
func parseGoStackHeader(line string) (goroutineID int, state string) {
|
func parseGoStackHeader(line string) (goroutineID int, state string, err error) {
|
||||||
line = strings.TrimSuffix(line, ":\n")
|
// The scanner will have already trimmed the "\n",
|
||||||
|
// but we'll guard against it just in case.
|
||||||
|
//
|
||||||
|
// Trimming them separately makes them both optional.
|
||||||
|
line = strings.TrimSuffix(strings.TrimSuffix(line, ":"), "\n")
|
||||||
parts := strings.SplitN(line, " ", 3)
|
parts := strings.SplitN(line, " ", 3)
|
||||||
if len(parts) != 3 {
|
if len(parts) != 3 {
|
||||||
panic(fmt.Sprintf("unexpected stack header format: %q", line))
|
return 0, "", fmt.Errorf("unexpected format: %q", line)
|
||||||
}
|
}
|
||||||
|
|
||||||
id, err := strconv.Atoi(parts[1])
|
id, err := strconv.Atoi(parts[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(fmt.Sprintf("failed to parse goroutine ID: %v in line %q", parts[1], line))
|
return 0, "", fmt.Errorf("bad goroutine ID %q in line %q", parts[1], line)
|
||||||
}
|
}
|
||||||
|
|
||||||
state = strings.TrimSuffix(strings.TrimPrefix(parts[2], "["), "]")
|
state = strings.TrimSuffix(strings.TrimPrefix(parts[2], "["), "]")
|
||||||
return id, state
|
return id, state, nil
|
||||||
}
|
}
|
||||||
|
6
vendor/go.uber.org/goleak/leaks.go
generated
vendored
6
vendor/go.uber.org/goleak/leaks.go
generated
vendored
@ -82,6 +82,12 @@ type testHelper interface {
|
|||||||
// tests by doing:
|
// tests by doing:
|
||||||
//
|
//
|
||||||
// defer VerifyNone(t)
|
// defer VerifyNone(t)
|
||||||
|
//
|
||||||
|
// VerifyNone is currently incompatible with t.Parallel because it cannot
|
||||||
|
// associate specific goroutines with specific tests. Thus, non-leaking
|
||||||
|
// goroutines from other tests running in parallel could fail this check.
|
||||||
|
// If you need to run tests in parallel, use [VerifyTestMain] instead,
|
||||||
|
// which will verify that no leaking goroutines exist after ALL tests finish.
|
||||||
func VerifyNone(t TestingT, options ...Option) {
|
func VerifyNone(t TestingT, options ...Option) {
|
||||||
opts := buildOpts(options...)
|
opts := buildOpts(options...)
|
||||||
var cleanup func(int)
|
var cleanup func(int)
|
||||||
|
28
vendor/go.uber.org/goleak/options.go
generated
vendored
28
vendor/go.uber.org/goleak/options.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2017 Uber Technologies, Inc.
|
// Copyright (c) 2017-2023 Uber Technologies, Inc.
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
// of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -67,6 +67,22 @@ func IgnoreTopFunction(f string) Option {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IgnoreAnyFunction ignores goroutines where the specified function
|
||||||
|
// is present anywhere in the stack.
|
||||||
|
//
|
||||||
|
// The function name must be fully qualified, e.g.,
|
||||||
|
//
|
||||||
|
// go.uber.org/goleak.IgnoreAnyFunction
|
||||||
|
//
|
||||||
|
// For methods, the fully qualified form looks like:
|
||||||
|
//
|
||||||
|
// go.uber.org/goleak.(*MyType).MyMethod
|
||||||
|
func IgnoreAnyFunction(f string) Option {
|
||||||
|
return addFilter(func(s stack.Stack) bool {
|
||||||
|
return s.HasFunction(f)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Cleanup sets up a cleanup function that will be executed at the
|
// Cleanup sets up a cleanup function that will be executed at the
|
||||||
// end of the leak check.
|
// end of the leak check.
|
||||||
// When passed to [VerifyTestMain], the exit code passed to cleanupFunc
|
// When passed to [VerifyTestMain], the exit code passed to cleanupFunc
|
||||||
@ -151,8 +167,12 @@ func isTestStack(s stack.Stack) bool {
|
|||||||
// Since go1.7, a separate goroutine is started to wait for signals.
|
// Since go1.7, a separate goroutine is started to wait for signals.
|
||||||
// T.Parallel is for parallel tests, which are blocked until all serial
|
// T.Parallel is for parallel tests, which are blocked until all serial
|
||||||
// tests have run with T.Parallel at the top of the stack.
|
// tests have run with T.Parallel at the top of the stack.
|
||||||
|
// testing.runFuzzTests is for fuzz testing, it's blocked until the test
|
||||||
|
// function with all seed corpus have run.
|
||||||
|
// testing.runFuzzing is for fuzz testing, it's blocked until a failing
|
||||||
|
// input is found.
|
||||||
switch s.FirstFunction() {
|
switch s.FirstFunction() {
|
||||||
case "testing.RunTests", "testing.(*T).Run", "testing.(*T).Parallel":
|
case "testing.RunTests", "testing.(*T).Run", "testing.(*T).Parallel", "testing.runFuzzing", "testing.runFuzzTests":
|
||||||
// In pre1.7 and post-1.7, background goroutines started by the testing
|
// In pre1.7 and post-1.7, background goroutines started by the testing
|
||||||
// package are blocked waiting on a channel.
|
// package are blocked waiting on a channel.
|
||||||
return strings.HasPrefix(s.State(), "chan receive")
|
return strings.HasPrefix(s.State(), "chan receive")
|
||||||
@ -163,7 +183,7 @@ func isTestStack(s stack.Stack) bool {
|
|||||||
func isSyscallStack(s stack.Stack) bool {
|
func isSyscallStack(s stack.Stack) bool {
|
||||||
// Typically runs in the background when code uses CGo:
|
// Typically runs in the background when code uses CGo:
|
||||||
// https://github.com/golang/go/issues/16714
|
// https://github.com/golang/go/issues/16714
|
||||||
return s.FirstFunction() == "runtime.goexit" && strings.HasPrefix(s.State(), "syscall")
|
return s.HasFunction("runtime.goexit") && strings.HasPrefix(s.State(), "syscall")
|
||||||
}
|
}
|
||||||
|
|
||||||
func isStdLibStack(s stack.Stack) bool {
|
func isStdLibStack(s stack.Stack) bool {
|
||||||
@ -174,5 +194,5 @@ func isStdLibStack(s stack.Stack) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Using signal.Notify will start a runtime goroutine.
|
// Using signal.Notify will start a runtime goroutine.
|
||||||
return strings.Contains(s.Full(), "runtime.ensureSigM")
|
return s.HasFunction("runtime.ensureSigM")
|
||||||
}
|
}
|
||||||
|
10
vendor/go.uber.org/goleak/tracestack_new.go
generated
vendored
10
vendor/go.uber.org/goleak/tracestack_new.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2021 Uber Technologies, Inc.
|
// Copyright (c) 2021-2023 Uber Technologies, Inc.
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
// of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -23,12 +23,8 @@
|
|||||||
|
|
||||||
package goleak
|
package goleak
|
||||||
|
|
||||||
import (
|
import "go.uber.org/goleak/internal/stack"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"go.uber.org/goleak/internal/stack"
|
|
||||||
)
|
|
||||||
|
|
||||||
func isTraceStack(s stack.Stack) bool {
|
func isTraceStack(s stack.Stack) bool {
|
||||||
return strings.Contains(s.Full(), "runtime.ReadTrace")
|
return s.HasFunction("runtime.ReadTrace")
|
||||||
}
|
}
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -946,8 +946,8 @@ go.starlark.net/resolve
|
|||||||
go.starlark.net/starlark
|
go.starlark.net/starlark
|
||||||
go.starlark.net/starlarkstruct
|
go.starlark.net/starlarkstruct
|
||||||
go.starlark.net/syntax
|
go.starlark.net/syntax
|
||||||
# go.uber.org/goleak v1.2.1
|
# go.uber.org/goleak v1.3.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.20
|
||||||
go.uber.org/goleak
|
go.uber.org/goleak
|
||||||
go.uber.org/goleak/internal/stack
|
go.uber.org/goleak/internal/stack
|
||||||
# go.uber.org/multierr v1.11.0
|
# go.uber.org/multierr v1.11.0
|
||||||
|
Loading…
Reference in New Issue
Block a user