eaigner / hood

Database agnostic ORM for Go
MIT License
710 stars 52 forks source link

hood create:config fails db/config.json doesn't already exist #52

Closed justinbarry closed 11 years ago

justinbarry commented 11 years ago
$ /bin/hood create:config
panic: open /Users/justin/repos/goHood/db/config.json: no such file or directory

goroutine 1 [running]:
main.init·1()
    /usr/local/go/src/pkg/github.com/eaigner/hood/cmd/cmd.go:56 +0x54c
main.init()
    /usr/local/go/src/pkg/github.com/eaigner/hood/cmd/templates.go:5 +0xf9

goroutine 2 [syscall]:
created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:221
eddytrex commented 11 years ago

I confirm this issue even if the db/config.json is created manually

eaigner commented 11 years ago

Whoops, there seems to be a regression there. I recently rewrote the hood commandline tool.