Open llimllib opened 4 years ago
oh! this is pre-go modules code so it needs to be cloned into GOPATH I'm guessing
I got a little closer by that, but it still didn't work:
$ mkdir -p ~/go/src/gnorm.org/
$ mv gnorm ~/go/src/gnorm.org/
$ cd ~/go/src/gnorm.org/gnorm/
$ mage build
database/drivers/mysql/parse.go:19: running "gnorm": exec: "gnorm": executable file not found in $PATH
database/drivers/postgres/parse.go:18: running "gnorm": exec: "gnorm": executable file not found in $PATH
Error: running "go generate ./..." failed with exit code 1
$ set | grep PATH
PATH=...:/Users/llimllib/go/bin:...
$ set | grep GO
GOBIN=/Users/llimllib/go/bin
GOPATH=/Users/llimllib/go
It complains about gnorm not being in my path; you can see that ~/go/bin is in both my PATH and GOBIN, but building still doesn't work.
I'm not going to continue investigating here, but will happily try things out if you have suggestions or questions I can run on my system.
you can just go install gnorm.org/gnorm
it won't generate the built-in docs or embed the version info in the binary, but it'll still work just fine. I should probably simplify the build instructions a lot... the mage build
target does a lot of stuff that normal people probably don't care about (like requiring hugo to build the web docs that get embedded into the binary).
yeah, I had no trouble installing with go get
, just wanted to let you know that the for best results
build instructions didn't work for me.
Also the config template references testdata/<something>.tpl
but gnorm init
creates templates/<something>.gotmpl
files, so gnorm init
-> edit config file -> gnorm preview
, as per the documentation, does not work unless you change those by hand. Want me to file an issue on that as well?
I get it. Thanks. And yes, please file another issue for the other problem. I appreciate it!
The readme says:
But when I do that, it does not succeed:
go env
Output