mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Updating dependency github.com/pkg/errors to version v0.9.1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -426,7 +426,7 @@ replace ( | ||||
| 	github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52 | ||||
| 	github.com/pelletier/go-toml => github.com/pelletier/go-toml v1.2.0 | ||||
| 	github.com/peterbourgon/diskv => github.com/peterbourgon/diskv v2.0.1+incompatible | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.9.1 | ||||
| 	github.com/pmezard/go-difflib => github.com/pmezard/go-difflib v1.0.0 | ||||
| 	github.com/pquerna/cachecontrol => github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021 | ||||
| 	github.com/pquerna/ffjson => github.com/pquerna/ffjson v0.0.0-20180717144149-af8b230fcd20 | ||||
|   | ||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							| @@ -414,8 +414,8 @@ github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181 | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021 h1:0XM1XL/OFFJjXsYXlG30spTkV/E9+gmd5GD1w2HE8xM= | ||||
|   | ||||
| @@ -34,7 +34,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
| @@ -254,8 +254,11 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa | ||||
| github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= | ||||
|   | ||||
| @@ -35,7 +35,7 @@ require ( | ||||
| 	golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975 | ||||
| 	golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 | ||||
| 	golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e | ||||
| 	golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7 | ||||
| 	golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 | ||||
| 	google.golang.org/grpc v1.26.0 | ||||
| 	gopkg.in/natefinch/lumberjack.v2 v2.0.0 | ||||
| 	gopkg.in/square/go-jose.v2 v2.2.2 | ||||
| @@ -53,7 +53,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -193,8 +193,11 @@ github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGV | ||||
| github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021 h1:0XM1XL/OFFJjXsYXlG30spTkV/E9+gmd5GD1w2HE8xM= | ||||
|   | ||||
| @@ -29,7 +29,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -135,8 +135,8 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| 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/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= | ||||
|   | ||||
| @@ -21,7 +21,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -119,8 +119,11 @@ github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGV | ||||
| github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
|   | ||||
| @@ -26,7 +26,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -204,8 +204,11 @@ github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= | ||||
|   | ||||
| @@ -10,7 +10,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
| @@ -105,7 +105,9 @@ github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+ | ||||
| github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
|   | ||||
| @@ -10,7 +10,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -105,7 +105,9 @@ github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+ | ||||
| github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
|   | ||||
| @@ -12,7 +12,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -105,7 +105,9 @@ github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+ | ||||
| github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
|   | ||||
| @@ -49,7 +49,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kubectl/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kubectl/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -193,8 +193,11 @@ github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181 | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
|   | ||||
| @@ -40,7 +40,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/legacy-cloud-providers/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/legacy-cloud-providers/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -198,7 +198,9 @@ github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGV | ||||
| github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= | ||||
|   | ||||
| @@ -18,7 +18,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -201,8 +201,11 @@ github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= | ||||
| github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| 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/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= | ||||
|   | ||||
| @@ -12,7 +12,6 @@ require ( | ||||
| ) | ||||
|  | ||||
| replace ( | ||||
| 	github.com/pkg/errors => github.com/pkg/errors v0.8.1 | ||||
| 	golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13 | ||||
| 	golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13 | ||||
| 	k8s.io/api => ../api | ||||
|   | ||||
							
								
								
									
										4
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -135,8 +135,8 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= | ||||
| github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= | ||||
| 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/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= | ||||
|   | ||||
							
								
								
									
										11
									
								
								vendor/github.com/pkg/errors/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/pkg/errors/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,15 +1,10 @@ | ||||
| language: go | ||||
| go_import_path: github.com/pkg/errors | ||||
| go: | ||||
|   - 1.4.x | ||||
|   - 1.5.x | ||||
|   - 1.6.x | ||||
|   - 1.7.x | ||||
|   - 1.8.x | ||||
|   - 1.9.x | ||||
|   - 1.10.x | ||||
|   - 1.11.x | ||||
|   - 1.12.x | ||||
|   - 1.13.x | ||||
|   - tip | ||||
|  | ||||
| script: | ||||
|   - go test -v ./... | ||||
|   - make check | ||||
|   | ||||
							
								
								
									
										1
									
								
								vendor/github.com/pkg/errors/BUILD
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/github.com/pkg/errors/BUILD
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -4,6 +4,7 @@ go_library( | ||||
|     name = "go_default_library", | ||||
|     srcs = [ | ||||
|         "errors.go", | ||||
|         "go113.go", | ||||
|         "stack.go", | ||||
|     ], | ||||
|     importmap = "k8s.io/kubernetes/vendor/github.com/pkg/errors", | ||||
|   | ||||
							
								
								
									
										44
									
								
								vendor/github.com/pkg/errors/Makefile
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								vendor/github.com/pkg/errors/Makefile
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| PKGS := github.com/pkg/errors | ||||
| SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS)) | ||||
| GO := go | ||||
|  | ||||
| check: test vet gofmt misspell unconvert staticcheck ineffassign unparam | ||||
|  | ||||
| test:  | ||||
| 	$(GO) test $(PKGS) | ||||
|  | ||||
| vet: | test | ||||
| 	$(GO) vet $(PKGS) | ||||
|  | ||||
| staticcheck: | ||||
| 	$(GO) get honnef.co/go/tools/cmd/staticcheck | ||||
| 	staticcheck -checks all $(PKGS) | ||||
|  | ||||
| misspell: | ||||
| 	$(GO) get github.com/client9/misspell/cmd/misspell | ||||
| 	misspell \ | ||||
| 		-locale GB \ | ||||
| 		-error \ | ||||
| 		*.md *.go | ||||
|  | ||||
| unconvert: | ||||
| 	$(GO) get github.com/mdempsky/unconvert | ||||
| 	unconvert -v $(PKGS) | ||||
|  | ||||
| ineffassign: | ||||
| 	$(GO) get github.com/gordonklaus/ineffassign | ||||
| 	find $(SRCDIRS) -name '*.go' | xargs ineffassign | ||||
|  | ||||
| pedantic: check errcheck | ||||
|  | ||||
| unparam: | ||||
| 	$(GO) get mvdan.cc/unparam | ||||
| 	unparam ./... | ||||
|  | ||||
| errcheck: | ||||
| 	$(GO) get github.com/kisielk/errcheck | ||||
| 	errcheck $(PKGS) | ||||
|  | ||||
| gofmt:   | ||||
| 	@echo Checking code is gofmted | ||||
| 	@test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)" | ||||
							
								
								
									
										11
									
								
								vendor/github.com/pkg/errors/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/pkg/errors/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -41,11 +41,18 @@ default: | ||||
|  | ||||
| [Read the package documentation for more information](https://godoc.org/github.com/pkg/errors). | ||||
|  | ||||
| ## Roadmap | ||||
|  | ||||
| With the upcoming [Go2 error proposals](https://go.googlesource.com/proposal/+/master/design/go2draft.md) this package is moving into maintenance mode. The roadmap for a 1.0 release is as follows: | ||||
|  | ||||
| - 0.9. Remove pre Go 1.9 and Go 1.10 support, address outstanding pull requests (if possible) | ||||
| - 1.0. Final release. | ||||
|  | ||||
| ## Contributing | ||||
|  | ||||
| We welcome pull requests, bug fixes and issue reports. With that said, the bar for adding new symbols to this package is intentionally set high. | ||||
| Because of the Go2 errors changes, this package is not accepting proposals for new functionality. With that said, we welcome pull requests, bug fixes and issue reports.  | ||||
|  | ||||
| Before proposing a change, please discuss your change by raising an issue. | ||||
| Before sending a PR, please discuss your change by raising an issue. | ||||
|  | ||||
| ## License | ||||
|  | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/pkg/errors/errors.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/pkg/errors/errors.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -82,7 +82,7 @@ | ||||
| // | ||||
| //     if err, ok := err.(stackTracer); ok { | ||||
| //             for _, f := range err.StackTrace() { | ||||
| //                     fmt.Printf("%+s:%d", f) | ||||
| //                     fmt.Printf("%+s:%d\n", f, f) | ||||
| //             } | ||||
| //     } | ||||
| // | ||||
| @@ -159,6 +159,9 @@ type withStack struct { | ||||
|  | ||||
| func (w *withStack) Cause() error { return w.error } | ||||
|  | ||||
| // Unwrap provides compatibility for Go 1.13 error chains. | ||||
| func (w *withStack) Unwrap() error { return w.error } | ||||
|  | ||||
| func (w *withStack) Format(s fmt.State, verb rune) { | ||||
| 	switch verb { | ||||
| 	case 'v': | ||||
| @@ -241,6 +244,9 @@ type withMessage struct { | ||||
| func (w *withMessage) Error() string { return w.msg + ": " + w.cause.Error() } | ||||
| func (w *withMessage) Cause() error  { return w.cause } | ||||
|  | ||||
| // Unwrap provides compatibility for Go 1.13 error chains. | ||||
| func (w *withMessage) Unwrap() error { return w.cause } | ||||
|  | ||||
| func (w *withMessage) Format(s fmt.State, verb rune) { | ||||
| 	switch verb { | ||||
| 	case 'v': | ||||
|   | ||||
							
								
								
									
										38
									
								
								vendor/github.com/pkg/errors/go113.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								vendor/github.com/pkg/errors/go113.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| // +build go1.13 | ||||
|  | ||||
| package errors | ||||
|  | ||||
| import ( | ||||
| 	stderrors "errors" | ||||
| ) | ||||
|  | ||||
| // Is reports whether any error in err's chain matches target. | ||||
| // | ||||
| // The chain consists of err itself followed by the sequence of errors obtained by | ||||
| // repeatedly calling Unwrap. | ||||
| // | ||||
| // An error is considered to match a target if it is equal to that target or if | ||||
| // it implements a method Is(error) bool such that Is(target) returns true. | ||||
| func Is(err, target error) bool { return stderrors.Is(err, target) } | ||||
|  | ||||
| // As finds the first error in err's chain that matches target, and if so, sets | ||||
| // target to that error value and returns true. | ||||
| // | ||||
| // The chain consists of err itself followed by the sequence of errors obtained by | ||||
| // repeatedly calling Unwrap. | ||||
| // | ||||
| // An error matches target if the error's concrete value is assignable to the value | ||||
| // pointed to by target, or if the error has a method As(interface{}) bool such that | ||||
| // As(target) returns true. In the latter case, the As method is responsible for | ||||
| // setting target. | ||||
| // | ||||
| // As will panic if target is not a non-nil pointer to either a type that implements | ||||
| // error, or to any interface type. As returns false if err is nil. | ||||
| func As(err error, target interface{}) bool { return stderrors.As(err, target) } | ||||
|  | ||||
| // Unwrap returns the result of calling the Unwrap method on err, if err's | ||||
| // type contains an Unwrap method returning error. | ||||
| // Otherwise, Unwrap returns nil. | ||||
| func Unwrap(err error) error { | ||||
| 	return stderrors.Unwrap(err) | ||||
| } | ||||
							
								
								
									
										58
									
								
								vendor/github.com/pkg/errors/stack.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										58
									
								
								vendor/github.com/pkg/errors/stack.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -5,10 +5,13 @@ import ( | ||||
| 	"io" | ||||
| 	"path" | ||||
| 	"runtime" | ||||
| 	"strconv" | ||||
| 	"strings" | ||||
| ) | ||||
|  | ||||
| // Frame represents a program counter inside a stack frame. | ||||
| // For historical reasons if Frame is interpreted as a uintptr | ||||
| // its value represents the program counter + 1. | ||||
| type Frame uintptr | ||||
|  | ||||
| // pc returns the program counter for this frame; | ||||
| @@ -37,6 +40,15 @@ func (f Frame) line() int { | ||||
| 	return line | ||||
| } | ||||
|  | ||||
| // name returns the name of this function, if known. | ||||
| func (f Frame) name() string { | ||||
| 	fn := runtime.FuncForPC(f.pc()) | ||||
| 	if fn == nil { | ||||
| 		return "unknown" | ||||
| 	} | ||||
| 	return fn.Name() | ||||
| } | ||||
|  | ||||
| // Format formats the frame according to the fmt.Formatter interface. | ||||
| // | ||||
| //    %s    source file | ||||
| @@ -54,22 +66,16 @@ func (f Frame) Format(s fmt.State, verb rune) { | ||||
| 	case 's': | ||||
| 		switch { | ||||
| 		case s.Flag('+'): | ||||
| 			pc := f.pc() | ||||
| 			fn := runtime.FuncForPC(pc) | ||||
| 			if fn == nil { | ||||
| 				io.WriteString(s, "unknown") | ||||
| 			} else { | ||||
| 				file, _ := fn.FileLine(pc) | ||||
| 				fmt.Fprintf(s, "%s\n\t%s", fn.Name(), file) | ||||
| 			} | ||||
| 			io.WriteString(s, f.name()) | ||||
| 			io.WriteString(s, "\n\t") | ||||
| 			io.WriteString(s, f.file()) | ||||
| 		default: | ||||
| 			io.WriteString(s, path.Base(f.file())) | ||||
| 		} | ||||
| 	case 'd': | ||||
| 		fmt.Fprintf(s, "%d", f.line()) | ||||
| 		io.WriteString(s, strconv.Itoa(f.line())) | ||||
| 	case 'n': | ||||
| 		name := runtime.FuncForPC(f.pc()).Name() | ||||
| 		io.WriteString(s, funcname(name)) | ||||
| 		io.WriteString(s, funcname(f.name())) | ||||
| 	case 'v': | ||||
| 		f.Format(s, 's') | ||||
| 		io.WriteString(s, ":") | ||||
| @@ -77,6 +83,16 @@ func (f Frame) Format(s fmt.State, verb rune) { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // MarshalText formats a stacktrace Frame as a text string. The output is the | ||||
| // same as that of fmt.Sprintf("%+v", f), but without newlines or tabs. | ||||
| func (f Frame) MarshalText() ([]byte, error) { | ||||
| 	name := f.name() | ||||
| 	if name == "unknown" { | ||||
| 		return []byte(name), nil | ||||
| 	} | ||||
| 	return []byte(fmt.Sprintf("%s %s:%d", name, f.file(), f.line())), nil | ||||
| } | ||||
|  | ||||
| // StackTrace is stack of Frames from innermost (newest) to outermost (oldest). | ||||
| type StackTrace []Frame | ||||
|  | ||||
| @@ -94,18 +110,32 @@ func (st StackTrace) Format(s fmt.State, verb rune) { | ||||
| 		switch { | ||||
| 		case s.Flag('+'): | ||||
| 			for _, f := range st { | ||||
| 				fmt.Fprintf(s, "\n%+v", f) | ||||
| 				io.WriteString(s, "\n") | ||||
| 				f.Format(s, verb) | ||||
| 			} | ||||
| 		case s.Flag('#'): | ||||
| 			fmt.Fprintf(s, "%#v", []Frame(st)) | ||||
| 		default: | ||||
| 			fmt.Fprintf(s, "%v", []Frame(st)) | ||||
| 			st.formatSlice(s, verb) | ||||
| 		} | ||||
| 	case 's': | ||||
| 		fmt.Fprintf(s, "%s", []Frame(st)) | ||||
| 		st.formatSlice(s, verb) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // formatSlice will format this StackTrace into the given buffer as a slice of | ||||
| // Frame, only valid when called with '%s' or '%v'. | ||||
| func (st StackTrace) formatSlice(s fmt.State, verb rune) { | ||||
| 	io.WriteString(s, "[") | ||||
| 	for i, f := range st { | ||||
| 		if i > 0 { | ||||
| 			io.WriteString(s, " ") | ||||
| 		} | ||||
| 		f.Format(s, verb) | ||||
| 	} | ||||
| 	io.WriteString(s, "]") | ||||
| } | ||||
|  | ||||
| // stack represents a stack of program counters. | ||||
| type stack []uintptr | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -624,7 +624,7 @@ github.com/opencontainers/selinux/go-selinux/label | ||||
| github.com/pelletier/go-toml | ||||
| # github.com/peterbourgon/diskv v2.0.1+incompatible => github.com/peterbourgon/diskv v2.0.1+incompatible | ||||
| github.com/peterbourgon/diskv | ||||
| # github.com/pkg/errors v0.9.1 => github.com/pkg/errors v0.8.1 | ||||
| # github.com/pkg/errors v0.9.1 => github.com/pkg/errors v0.9.1 | ||||
| github.com/pkg/errors | ||||
| # github.com/pmezard/go-difflib v1.0.0 => github.com/pmezard/go-difflib v1.0.0 | ||||
| github.com/pmezard/go-difflib/difflib | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Davanum Srinivas
					Davanum Srinivas