Closed dongmai closed 6 years ago
Hi @dongmai
@dongmai
just sub-dir under GOPATH/src
and do not include *.go
Have Good Time :)
I have placed the go application inside GOPATH/src/github.com/ From inside GOPATH/src I ran command pmgo start github.com/project/ app-name , it throws the error "FATA[0000] Failed to start go bin due to: ERROR: exit status 2 OUTPUT:" Where to check the actual cause of error? Application get started using go run command without any error. Any idea how to resolve? Can't we run application from any folder using pmgo.
@nshah14285 Your system is windows or based with *nix systems ?
Hi @struCoder, This is coming again,
pmgo start github.com/tus/tusd/cmd/tusd TUS-API
Do you have any idea about this?
@thetruth4u emmmm... That is interesting.. Do you set correct gopath?
yes, the gopath is at ~/go
Here is my result when go env
:
...
GOPATH="/home/{my_username}/go"
GOROOT="/usr/local/go"
...
hi @thetruth4u where is your source-code directory, including $GOPATH ?? i had similarly your issue , but i got solution.
if my $GOPATH, like this.... GOPATH="/home/{my_username}/go"
and my project source-code directory configured like this... /home/{my_username}/go/github.com/abc/def/
so, i run pmgo
command like this...
pmgo start github.com/abc/def ABC
check your project source-code directory's including $GOPATH
i hope It was a good reference to you ... thx
您好~我照著相同的方式將https://github.com/tus/tusd 下載到GOPATH,並且照著專案的使用者直接開啟執行檔是可以的,但使用pmgo start github.com/tus/tusd/cmd/tusd/ tusd 一樣會發生 FATA[0000] Failed to start go bin due to: ERROR: exit status 1 OUTPUT: 系統是MAC; GOPATH="/Users/{user_name}/go"; GOROOT="/usr/local/go"
Hi @struCoder , I cloned the repo and git checkout beta and build
command-line-arguments
./pmgo.go:103:17: too many arguments in call to cli.StartGoBin have (string, string, bool, []string, bool)
Can you help me to resolve this? Thanks.
@dicklei Hi there Can you show me your start command line?
Hi @struCoder ,
I always got this error message when trying to start an app. (the app was tusd: https://github.com/tus/tusd)
I cloned the repo to tusd folder, and the main.go file is located at tusd/cmd/tusd/main.go
I've tried both
pmgo start tusd/cmd/tusd/main.go TUS-API
andpmgo start /tusd/ TUS-API
and no luck.Can you help me to resolve this? Thanks.