gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
488 stars 40 forks source link

gnorm gen error: echo doesn't work on windows #71

Open xserve98 opened 6 years ago

xserve98 commented 6 years ago

Error: generating file for schema public: error running postrun command ["echo" "..\models\public.go"]: exec: "echo": executable file not found in %PATH%

gnorm.toml

PostRun = ["echo", "$GNORMFILE"]

windows 10 install

go get gnorm.org/gnorm

cd  gopath/src/gnorm.org/gnorm
go get github.com/magefile/mage
mage build
xserve98 commented 6 years ago

PostRun = ["goimports", "-w", "$GNORMFILE"]

natefinch commented 6 years ago

weird, I thought echo worked on windows.... maybe it's just a command prompt alias or something? thanks for pointing this out, I'll try to fix this.