-
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
756-vgo-support #762
756-vgo-support #762
Conversation
Hi @jharshman, it looks like circleci is reporting a failing check. the go tests pass on my local box with your changes. I'm not sure what else I might be missing, but from my end it should be passing. :/ |
@andrewmeissner I'm not sure why there is a failing check there. Looks like it has something to do with bash completions. Will have to investigate this further. |
@jharshman just wanted to check on this. Did anything show up in the bash completions investigation? Thanks again! |
@andrewmeissner Hadn't had time to do take an in-depth look due to the holidays. I'll give it a go in the next couple days and see what turns up. |
@andrewmeissner ah I see the fix - it's a formatting error. I'll fix it real quick.
|
756 - tweak vgo param to be string * vgo param represents package name of project 756-vgo-support - create in current working directory 756-vgo-support - init outside of GOPATH 756-vgo-support - work on init cmd formatting
067349f
to
86032b9
Compare
Hi again, @jharshman , just wanted to follow up on this. |
This could be a valid workaround for #795 ? |
@tsal seems like it. As long as cobra can work with modules - I'm a happy camper. :) |
@andrewmeissner #817 |
Awesome! Thanks @jharshman ! |
Moves to resolve Issue #756
This is a small change set which allows the cobra generator to work outside of the GOPATH by setting the flag
--vgo=<package>
. If run without the--vgo
flag, the generator flow remains the same.Changes
--vgo
root persistent flag taking a string representing the package name.e.g:
--vgo=github.com/spf14/hugo
--vgo
flag is set, allow init of project outside ofGOPATH
--vgo
, there is no need to specify package name. If you are outside the project directory, you must specify--package
equal to the relative directory of your current working directory.Future improvements
GOPATH
to be able to derive the location of packages. I would like to see the weight on this dependency lighten as it is phased out of use in the language.