jarosser06 / fastfood

DEPRECATED: use http://github.com/rackerlabs/fastfood
MIT License
0 stars 2 forks source link

Error on 'fastfood new' #9

Closed mattjbarlow closed 9 years ago

mattjbarlow commented 9 years ago

Getting an error.

localhost:Personal $ go version
go version go1.3.3 linux/amd64
localhost:Personal $ fastfood new sidekiq
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x4d3a81]

goroutine 16 [running]:
runtime.panic(0x76d360, 0x9ab8f3)
        /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/GeertJohan/go%2erice.(*Box).String(0x0, 0x7c9ad0, 0x9, 0x0, 0x0, 0x0, 0x0)
        /home/mattjbarlow/go/src/github.com/fastfood/.gopath/src/github.com/GeertJohan/go.rice/box.go:306 +0x71
github.com/jarosser06/fastfood.(*Cookbook).GenFiles(0xc208050000, 0x0, 0x0)
        /home/mattjbarlow/go/src/github.com/fastfood/.gopath/src/github.com/jarosser06/fastfood/cookbook.go:115 +0x10f
github.com/jarosser06/fastfood/cmd.(*Builder).Run(0xc208000830, 0xc20800e020, 0x1, 0x1, 0xc208028168)
        /home/mattjbarlow/go/src/github.com/fastfood/.gopath/src/github.com/jarosser06/fastfood/cmd/builder.go:43 +0x4ed
github.com/mitchellh/cli.(*CLI).Run(0xc2080520a0, 0xc20800ecc0, 0x0, 0x0)
        /home/mattjbarlow/go/src/github.com/fastfood/.gopath/src/github.com/mitchellh/cli/cli.go:100 +0x3a1
main.main()
        /home/mattjbarlow/go/src/github.com/fastfood/cmd/main/main.go:25 +0x18b

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
        /usr/lib/go/src/pkg/runtime/mheap.c:507
runtime.goexit()
        /usr/lib/go/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
        /usr/lib/go/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
        /usr/lib/go/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
        /usr/lib/go/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
        /usr/lib/go/src/pkg/runtime/proc.c:1445

goroutine 20 [runnable]:
os/signal.loop()
        /usr/lib/go/src/pkg/os/signal/signal_unix.go:19
created by os/signal.init·1
        /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x32

After this, a 'sidekiq' directory and subdirectories are created, but no files.

jarosser06 commented 9 years ago

Looks like an issue with the templates not being compiled into the binary. Added to Pivotal with id 84426830

jarosser06 commented 9 years ago

@mattjbarlow this should be cleared up now.

I have added a template cookbook to https://github.com/jarosser06/ff_templatepack