Skip to content
A simple little repo to reproduce a bug in goa
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Goa bug

This is a simple, demo repo to reproduce a bug with goa gen

$ goa gen
exit status 2
panic: reflect: call of reflect.Value.Set on zero Value

goroutine 1 [running]:
  /home/adam/.gvm/gos/go1.10.3/src/reflect/value.go:215 +0xae
reflect.Value.Set(0x849f80, 0xc4203953e0, 0x195, 0x0, 0x0, 0x0)
  /home/adam/.gvm/gos/go1.10.3/src/reflect/value.go:1368 +0x40
reflect.Append(0x81de80, 0xc4203953c0, 0x97, 0xc42028a640, 0x1, 0x1, 0x97, 0xc420330800, 0xc4203437a0)
  /home/adam/.gvm/gos/go1.10.3/src/reflect/value.go:1864 +0xe3*Array).MakeSlice(0xc420270310, 0xc42037d900, 0x4, 0x4, 0x4, 0x4)
  /home/adam/go/src/ +0x125*Array).Example(0xc420270310, 0xc4203437a0, 0xc4202be6c0, 0x11)
  /home/adam/go/src/ +0x142*UserTypeExpr).recExample(0xc4203307e0, 0xc4203437a0, 0x0)
  /home/adam/go/src/ +0x125*UserTypeExpr).Example(0xc4203307e0, 0xc4203437a0, 0x0, 0x0)
  /home/adam/go/src/ +0x35*AttributeExpr).Example(0xc420332320, 0xc4203437a0, 0xc42028aad8, 0x3)
  /home/adam/go/src/ +0x1ca, 0xc4202edf40, 0xc420332320, 0xc420361cc0, 0x0, 0xc42028aea0, 0xc420272910, 0xb, 0xc42039abe0)
  /home/adam/go/src/ +0x4cb, 0xc420361cc0, 0x1, 0xc420378900, 0xc420272910, 0xb, 0x98, 0x98, 0xc420393040)
  /home/adam/go/src/ +0x3a7, 0xc420378900, 0x11c)
  /home/adam/go/src/ +0x249, 0xc420320000, 0x6)
  /home/adam/go/src/ +0x2672, 0x8ca643, 0x6, 0xc4202bfd40)
  /home/adam/go/src/ +0xa9, 0x21, 0xc420320000, 0xc4203679b0)
  /home/adam/go/src/ +0xf8, 0x21, 0xc04780, 0x0, 0x4, 0x4)
  /home/adam/go/src/ +0xdc, 0x21, 0xc4202779c0, 0x3, 0x4, 0x4, 0x4, 0x4, 0x0, 0x0)
  /home/adam/go/src/ +0x94, 0x1, 0x8c2d04, 0x3, 0x0, 0x0, 0xc42026edc0, 0x0, 0xffffffffffffffff)
  /home/adam/go/src/ +0x2fe
  /home/adam/go/src/ +0x2a2
You can’t perform that action at this time.