DockerCLI/vendor/github.com
Sebastiaan van Stijn c189c4dbea
[20.10] vendor: github.com/json-iterator/go v1.1.12 for Go 1.18 compatibility
full diff: 0ff49de124...024077e996

Fixes a nil-pointer exception on go 1.18;

```
=== FAIL: cli/context/kubernetes TestSaveLoadContexts (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x40fcbc]

goroutine 19 [running]:
testing.tRunner.func1.2({0xa7e080, 0x1073930})
	/usr/local/go/src/testing/testing.go:1389 +0x24e
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1392 +0x39f
panic({0xa7e080, 0x1073930})
	/usr/local/go/src/runtime/panic.go:838 +0x207
reflect.mapiternext(0x40?)
	/usr/local/go/src/runtime/map.go:1378 +0x19
github.com/docker/cli/vendor/github.com/modern-go/reflect2.(*UnsafeMapIterator).UnsafeNext(0x8?)
	/go/src/github.com/docker/cli/vendor/github.com/modern-go/reflect2/unsafe_map.go:136 +0x32
github.com/docker/cli/vendor/github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0xc000478930, 0xc0000ca3a8, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_map.go:293 +0x335
github.com/docker/cli/vendor/github.com/json-iterator/go.(*placeholderEncoder).Encode(0xc00046c898?, 0x95d787?, 0xc0000bae58?)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect.go:327 +0x22
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc000482630, 0xa2790c?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:110 +0x56
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structEncoder).Encode(0xc000482780, 0xb3a599?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:158 +0x652
github.com/docker/cli/vendor/github.com/json-iterator/go.(*placeholderEncoder).Encode(0xc00046ca10?, 0x95d787?, 0xc0000bae58?)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect.go:327 +0x22
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004829f0, 0xa0fd11?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:110 +0x56
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structEncoder).Encode(0xc000482a50, 0x40aa15?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:158 +0x652
github.com/docker/cli/vendor/github.com/json-iterator/go.(*sliceEncoder).Encode(0xc00047e198, 0xc0003a83c8, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_slice.go:38 +0x2bb
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004837a0, 0xa12e12?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:110 +0x56
github.com/docker/cli/vendor/github.com/json-iterator/go.(*structEncoder).Encode(0xc000483890, 0x0?, 0xc0000bae40)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_struct_encoder.go:158 +0x652
github.com/docker/cli/vendor/github.com/json-iterator/go.(*OptionalEncoder).Encode(0xc0003b6be0?, 0x0?, 0x0?)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect_optional.go:74 +0xa4
github.com/docker/cli/vendor/github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc000471e30, 0xc0003a8370, 0xc000460720?)
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect.go:214 +0x82
github.com/docker/cli/vendor/github.com/json-iterator/go.(*Stream).WriteVal(0xc0000bae40, {0xabe4a0, 0xc0003a8370})
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/reflect.go:93 +0x158
github.com/docker/cli/vendor/github.com/json-iterator/go.(*frozenConfig).Marshal(0xc0003b6be0, {0xabe4a0, 0xc0003a8370})
	/go/src/github.com/docker/cli/vendor/github.com/json-iterator/go/config.go:299 +0xc9
github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).Encode(0xc00043aee0?, {0xc375c0?, 0xc0003a8370?}, {0xc339e0, 0xc000460210})
	/go/src/github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go:310 +0x6d
github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).Encode(0xc0000f8480, {0xc37570?, 0xc0000bacc0}, {0xc339e0, 0xc000460210})
	/go/src/github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go:231 +0x926
github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime.Encode({0x7f48b36ce5c0, 0xc0000f8480}, {0xc37570, 0xc0000bacc0})
	/go/src/github.com/docker/cli/vendor/k8s.io/apimachinery/pkg/runtime/codec.go:46 +0x64
github.com/docker/cli/vendor/k8s.io/client-go/tools/clientcmd.Write(...)
	/go/src/github.com/docker/cli/vendor/k8s.io/client-go/tools/clientcmd/loader.go:469
github.com/docker/cli/cli/context/kubernetes.TestSaveLoadContexts(0xc0004561a0?)
	/go/src/github.com/docker/cli/cli/context/kubernetes/endpoint_test.go:75 +0xf0a
testing.tRunner(0xc0004561a0, 0xb89ea0)
	/usr/local/go/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1486 +0x35f
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-19 16:12:25 +02:00
..
Azure/go-ansiterm vendor: moby/term, Azure/go-ansiterm for golang.org/x/sys/windows compat 2021-06-21 13:32:31 +02:00
Microsoft vendor: github.com/Microsoft/go-winio v0.4.15 2020-11-16 14:36:21 +01:00
beorn7/perks vendor: beorn7/perks v1.0.1 2020-05-11 19:37:29 +02:00
cespare/xxhash/v2 vendor: update prometheus deps to match docker/docker 2020-09-09 14:57:00 +02:00
containerd [20.10] vendor: github.com/docker/docker v20.10.7 2021-06-07 11:53:56 +02:00
coreos/etcd Bump some dependencies to more recent versions (and tagged if available) 2018-07-25 14:16:41 +02:00
cpuguy83/go-md2man/v2 vendor: cpuguy83/go-md2man/v2 v2.0.1 2021-07-21 11:04:19 +02:00
creack/pty vendor: github.com/creack/pty v1.1.11 2020-11-03 13:44:13 +01:00
davecgh/go-spew bump github.com/davecgh/go-spew v1.1.1 2019-04-18 19:20:31 +02:00
docker [20.10] vendor: github.com/docker/distribution v2.8.1 2022-04-04 11:31:17 +02:00
evanphx/json-patch bump kubernetes to v1.14.0 2019-03-29 09:20:28 +00:00
fvbommel/sortorder vendor: github.com/fvbommel/sortorder v1.0.2 2020-10-31 14:37:07 +01:00
gofrs/flock vendor: github.com/gofrs/flock v0.7.3 2020-10-20 22:46:48 +02:00
gogo vendor: github.com/gogo/protobuf v1.3.1 2020-04-22 17:18:49 +02:00
golang [20.10] vendor: compose-on-kubernetes v0.5.0 to remove github.com/golang/glog 2022-02-14 14:49:04 +01:00
google [20.10] vendor: github.com/modern-go/reflect2 v1.0.2 for Go 1.18 compatibility 2022-08-19 16:10:25 +02:00
googleapis/gnostic Bump some dependencies to more recent versions (and tagged if available) 2018-07-25 14:16:41 +02:00
gorilla/mux vendor: github.com/gorilla/mux v1.8.0 2020-09-09 14:07:48 +02:00
grpc-ecosystem vendor: buildkit df35e9818d1f9066e616e03f4b8d727c97562e5b 2020-07-20 15:50:51 +02:00
hashicorp/golang-lru bump hashicorp/golang-lru v0.5.3 2019-12-12 21:21:22 +01:00
imdario/mergo bump imdario/mergo v0.3.8 2020-01-21 14:08:10 +00:00
inconshreveable/mousetrap Add vendor 2017-04-17 18:12:58 -04:00
jaguilar/vt100 bump LK4D4/vndr v0.0.3 and revendor 2019-05-14 16:13:27 -07:00
json-iterator/go [20.10] vendor: github.com/json-iterator/go v1.1.12 for Go 1.18 compatibility 2022-08-19 16:12:25 +02:00
matttproud/golang_protobuf_extensions Bump moby to d37f5c6bdf788a6cb82c07fb707e31a240eff5f9 2018-05-18 11:44:14 +02:00
miekg/pkcs11 vendor: bump miekg/pkcs11 v1.0.3 2020-01-16 17:30:06 +01:00
mitchellh/mapstructure vendor: mitchellh/mapstructure v1.3.2 2020-06-30 16:14:54 +02:00
moby vendor: moby/term, Azure/go-ansiterm for golang.org/x/sys/windows compat 2021-06-21 13:32:31 +02:00
modern-go [20.10] vendor: github.com/modern-go/reflect2 v1.0.2 for Go 1.18 compatibility 2022-08-19 16:10:25 +02:00
morikuni/aec Vendoring for stack watch status and testing 2018-05-24 16:43:04 +02:00
opencontainers [20.10] vendor: github.com/opencontainers/image-spec v1.0.2 2022-04-04 11:27:12 +02:00
opentracing/opentracing-go vendor: github.com/opentracing/opentracing-go v1.2.0 2020-12-02 21:01:12 +00:00
pkg/errors vendor: pkg/errors v0.9.1 2020-05-09 21:25:30 +02:00
prometheus vendor: update prometheus deps to match docker/docker 2020-09-09 14:57:00 +02:00
russross/blackfriday/v2 vendor: github.com/russross/blackfriday/v2 v2.1.0 2021-07-21 11:03:01 +02:00
sirupsen/logrus vendor: sirupsen/logrus v1.7.0 2020-09-30 13:42:17 +02:00
spf13 vendor: github.com/spf13/cobra v1.1.1 2020-10-20 12:39:57 +02:00
theupdateframework/notary vendor: github.com/theupdateframework/notary v0.7.0-21-gbf96a202 2021-04-01 10:44:29 +02:00
tonistiigi vendor: github.com/tonistiigi/fsutil 0834f99b7b85462efb69b4f571a4fa3ca7da5ac9 2020-12-02 21:01:12 +00:00
xeipuuv vendor: xeipuuv/gojsonschema v1.2.0 2020-06-30 16:20:03 +02:00