Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kit cmd error #21

Closed
zwell opened this issue Dec 11, 2018 · 9 comments
Closed

kit cmd error #21

zwell opened this issue Dec 11, 2018 · 9 comments

Comments

@zwell
Copy link

zwell commented Dec 11, 2018

I install the kit follow the doc, but when I try "kit help", the error happen.
ERRO[0000] The project must be in the $GOPATH/src folder for the generator to work.

@0x457
Copy link

0x457 commented Dec 26, 2018

I install the kit follow the doc, but when I try "kit help", the error happen.
ERRO[0000] The project must be in the $GOPATH/src folder for the generator to work.

cd $GOPATH/src/child-dir,then kit help

@pandanrain
Copy link

go version 1.11
`pandanrain:elk pandanrain$ echo $GOPATH

/www/workspace/go/

pandanrain:elk pandanrain$ pwd

/www/workspace/go/src/elk

pandanrain:elk pandanrain$ kit help

ERRO[0000] The project must be in the $GOPATH/src folder for the generator to work. `

as below cd $GOPATH/src/child-dir not work for me

@jfiuza
Copy link

jfiuza commented Jan 8, 2019

Actually i think the problem might be GOPATH. If it ends with a / you probably need to remove the /

@navono
Copy link

navono commented Jan 9, 2019

If use go mod, the project directory no need to be in $GOPATH/src directory and also have the problem:

?[31mERRO?[0m[0000] The project must be in the $GOPATH/src folder for the generator to work.

@maeglindeveloper
Copy link

@kujtimiihoxha , is there a way to handle this :) ?
Thanks :)

@yackermann
Copy link

Same issues here

@kujtimiihoxha
Copy link
Owner

kit does not support go mod for now, I do not know if I will have the time to implement this functionality in the near future.

@Sakurasan
Copy link

@kujtimiihoxha
Copy link
Owner

@Sakurasan @navono @herrjemand The project needs to be in a child dir of GOPATH/src something like GOPATH/src/my_project, for now go mod is not supported but I will see how much it takes to modify kit.

@jfiuza that should be fixed with #31

Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants