-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Generator should support Go modules #720
Comments
is there any workaround for this? |
I believe my problem is related. When I run
|
I just moved the project into the GOPATH in order to use cobra init/add and then moved it back into my project folder which worked fine. |
From bash or similar shells you can use: |
This should be resolved by #817 . |
Go modules will be released soon, and the cobra generator should be updated to respect them. Currently, it always generates into
GOPATH
, but when run in a repository that has ago.mod
file, it should instead generate into the current directory.The text was updated successfully, but these errors were encountered: