-
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
failed to install cobra generator and its dependencies #1191
Comments
+1 I found running |
+1 |
Works with:
|
A solution could be to set an explicit version in I suppose the It's a bit silly that go modules try to get that |
Will this solution be marked in the doc later ? |
PR spf13#1139 introduced a complexity that will have to be taken into account as we figure out our release pipeline. This fix pins to cobrav1.0.0 as a temporary workaround. fixes: spf13#1191
Oddly, I can't seem to recreate this issue on my end. Nonetheless, I have submitted a PR for the solution proposed by @MichaelMure. |
Hmm, I'm going to ask the question, but does having viper in the CLI tool (meaning handling the flags with viper, not generating a project with viper included) actually useful ? If not, removing that support would resolve everything at once: no super heavy deps, no double go.mod needed and no weird interaction with it. |
Go version
go1.15
OS
macOS 10.15.3
What have you done?
follow the guides, run this command
go get -u github.com/spf13/cobra/cobra
What happend?
go: github.com/spf13/cobra/cobra upgrade => v0.0.0-20200815144417-81e0311edd0b go get: github.com/spf13/cobra/[email protected] requires github.com/spf13/[email protected]: reading github.com/spf13/cobra/go.mod at revision v0.0.0: unknown revision v0.0.0
expects
successfully install cobra generator and its deps
The text was updated successfully, but these errors were encountered: