Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Assignment" with "Collect into array" causes infinite loop and stack overflow #1107

Closed
shunf4 opened this issue Feb 12, 2022 · 1 comment
Closed
Labels

Comments

@shunf4
Copy link

shunf4 commented Feb 12, 2022

Describe the bug
Using "Assignment" along with "Collect into array" causes infinite loop and stack overflow.

Version of yq: 4.19.1
Operating system: Windows
Installed via: release

Command
The command you ran:

echo '{"a":1}' | yq '.a = [.a]'

Actual behavior

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0203e1368 stack=[0xc0203e0000, 0xc0403e0000]
fatal error: stack overflow

runtime stack:
runtime.throw({0x129b88a, 0x150eb20})
	/opt/hostedtoolcache/go/1.17.6/x64/src/runtime/panic.go:1198 +0x76
runtime.newstack()
	/opt/hostedtoolcache/go/1.17.6/x64/src/runtime/stack.go:1088 +0x5cc
runtime.morestack()
	/opt/hostedtoolcache/go/1.17.6/x64/src/runtime/asm_amd64.s:461 +0x93

goroutine 1 [running]:
runtime.rawbyteslice(0x0)
	/opt/hostedtoolcache/go/1.17.6/x64/src/runtime/string.go:274 +0x17d fp=0xc0203e1378 sp=0xc0203e1370 pc=0xf7e3bd
runtime.stringtoslicebyte(0x0, {0x0, 0x0})
	/opt/hostedtoolcache/go/1.17.6/x64/src/runtime/string.go:171 +0x4f fp=0xc0203e13b8 sp=0xc0203e1378 pc=0xf7dc8f
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:488 +0x60a fp=0xc0203e1aa0 sp=0xc0203e13b8 pc=0x104f9ca
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e2188 sp=0xc0203e1aa0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e2870 sp=0xc0203e2188 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e2f58 sp=0xc0203e2870 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e3640 sp=0xc0203e2f58 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e3d28 sp=0xc0203e3640 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e4410 sp=0xc0203e3d28 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e4af8 sp=0xc0203e4410 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e51e0 sp=0xc0203e4af8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e58c8 sp=0xc0203e51e0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e5fb0 sp=0xc0203e58c8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e6698 sp=0xc0203e5fb0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e6d80 sp=0xc0203e6698 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e7468 sp=0xc0203e6d80 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e7b50 sp=0xc0203e7468 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e8238 sp=0xc0203e7b50 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e8920 sp=0xc0203e8238 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e9008 sp=0xc0203e8920 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e96f0 sp=0xc0203e9008 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203e9dd8 sp=0xc0203e96f0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ea4c0 sp=0xc0203e9dd8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203eaba8 sp=0xc0203ea4c0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203eb290 sp=0xc0203eaba8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203eb978 sp=0xc0203eb290 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ec060 sp=0xc0203eb978 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ec748 sp=0xc0203ec060 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ece30 sp=0xc0203ec748 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ed518 sp=0xc0203ece30 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203edc00 sp=0xc0203ed518 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ee2e8 sp=0xc0203edc00 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ee9d0 sp=0xc0203ee2e8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ef0b8 sp=0xc0203ee9d0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ef7a0 sp=0xc0203ef0b8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203efe88 sp=0xc0203ef7a0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f0570 sp=0xc0203efe88 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f0c58 sp=0xc0203f0570 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f1340 sp=0xc0203f0c58 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f1a28 sp=0xc0203f1340 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f2110 sp=0xc0203f1a28 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f27f8 sp=0xc0203f2110 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f2ee0 sp=0xc0203f27f8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f35c8 sp=0xc0203f2ee0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f3cb0 sp=0xc0203f35c8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f4398 sp=0xc0203f3cb0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f4a80 sp=0xc0203f4398 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f5168 sp=0xc0203f4a80 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f5850 sp=0xc0203f5168 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f5f38 sp=0xc0203f5850 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f6620 sp=0xc0203f5f38 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f6d08 sp=0xc0203f6620 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f73f0 sp=0xc0203f6d08 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f7ad8 sp=0xc0203f73f0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f81c0 sp=0xc0203f7ad8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f88a8 sp=0xc0203f81c0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f8f90 sp=0xc0203f88a8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f9678 sp=0xc0203f8f90 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203f9d60 sp=0xc0203f9678 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fa448 sp=0xc0203f9d60 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fab30 sp=0xc0203fa448 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fb218 sp=0xc0203fab30 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fb900 sp=0xc0203fb218 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fbfe8 sp=0xc0203fb900 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fc6d0 sp=0xc0203fbfe8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fcdb8 sp=0xc0203fc6d0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fd4a0 sp=0xc0203fcdb8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fdb88 sp=0xc0203fd4a0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fe270 sp=0xc0203fdb88 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203fe958 sp=0xc0203fe270 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ff040 sp=0xc0203fe958 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ff728 sp=0xc0203ff040 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0203ffe10 sp=0xc0203ff728 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204004f8 sp=0xc0203ffe10 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020400be0 sp=0xc0204004f8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204012c8 sp=0xc020400be0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204019b0 sp=0xc0204012c8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020402098 sp=0xc0204019b0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020402780 sp=0xc020402098 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020402e68 sp=0xc020402780 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020403550 sp=0xc020402e68 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020403c38 sp=0xc020403550 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020404320 sp=0xc020403c38 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020404a08 sp=0xc020404320 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204050f0 sp=0xc020404a08 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204057d8 sp=0xc0204050f0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020405ec0 sp=0xc0204057d8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc0204065a8 sp=0xc020405ec0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020406c90 sp=0xc0204065a8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020407378 sp=0xc020406c90 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020407a60 sp=0xc020407378 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020408148 sp=0xc020407a60 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020408830 sp=0xc020408148 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020408f18 sp=0xc020408830 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020409600 sp=0xc020408f18 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc020409ce8 sp=0xc020409600 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc02040a3d0 sp=0xc020409ce8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc02040aab8 sp=0xc02040a3d0 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc02040b1a0 sp=0xc02040aab8 pc=0x10508e5
gopkg.in/yaml%2ev3.(*encoder).node(0xc000080c00, 0xc0000a7040, {0x0, 0x0})
	/home/runner/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b/encode.go:492 +0x1525 fp=0xc02040b888 sp=0xc02040b1a0 pc=0x10508e5
...additional frames elided...

Expected behavior

{"a": [1]}

Additional context
Add any other context about the problem here.

@mikefarah
Copy link
Owner

Fixed in 4.20.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants