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

go get github.com/spf13/cobra/cobra can not install cobra bin file to $GOPATH/bin #1304

Closed
mrasong opened this issue Dec 29, 2020 · 2 comments

Comments

@mrasong
Copy link

mrasong commented Dec 29, 2020

$ go get github.com/spf13/cobra/cobra      
go: github.com/spf13/cobra/cobra upgrade => v0.0.0-20200916152758-7f8e83d9366a
go get github.com/spf13/cobra/cobra: ambiguous import: found package github.com/spf13/cobra/cobra in multiple modules:
        github.com/spf13/cobra v1.1.1 (/Users/ma/go/pkg/mod/github.com/spf13/cobra@v1.1.1/cobra)
        github.com/spf13/cobra/cobra v0.0.0-20200916152758-7f8e83d9366a (/Users/ma/go/pkg/mod/github.com/spf13/cobra/cobra@v0.0.0-20200916152758-7f8e83d9366a)
@mrasong
Copy link
Author

mrasong commented Dec 29, 2020

use go get github.com/spf13/cobra/cobra@v1.1.1 fixed.

may be a better way to add a go.mod for github.com/spf13/cobra/cobra?

@umarcor
Copy link
Contributor

umarcor commented Dec 29, 2020

@mrasong see #1233 and #1240.

@mrasong mrasong closed this as completed Feb 8, 2021
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

2 participants