and then run go generate app/server.go there is an error about being unable to detect a dependencies management tool. This is because go generate changes the working directory to that of the sub-package.
$ go generate app/server.go
failed to detect a dependencies management tool
app/server.go:1: running "gex": exit status 1
It might be a good idea to travel up the file tree to see if this package is being managed at a higher level already.
I have the same problem right now when I want to use
gex
together withgo generate
.Suppose I have a
app/server.go
file:and then run
go generate app/server.go
there is an error about being unable to detect a dependencies management tool. This is becausego generate
changes the working directory to that of the sub-package.It might be a good idea to travel up the file tree to see if this package is being managed at a higher level already.