Open Anton-Cao opened 6 years ago
@Anton-Cao
Right.
when exe pmgo start
command, pmgo will build your project from GOPATH/src.
This information needs to be added to readme or documentation
I think this issue should also be fixed, since from go 1.11, projects no longer need to be placed under $GOPATH/src
.
I submitted the pull request to the start command by adding the cwd parameter to specify the working directory.
(More of a detail than an issue with
pmgo
, but I spent some time debugging a bug that was caused by this so I'm hoping that noting it down here can help other people later.)Child processes that the
pmgo
daemon manages have the same working directory as thepmgo
process. This means the working directory is not the project folder, so relative file paths can break.To get around this, you can change the working directory: