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

getting err about undefined: io.StringWriter #2203

Open
kyilmaz opened this issue Nov 25, 2024 · 1 comment
Open

getting err about undefined: io.StringWriter #2203

kyilmaz opened this issue Nov 25, 2024 · 1 comment

Comments

@kyilmaz
Copy link

kyilmaz commented Nov 25, 2024

Hi,
my go lang version is (go1.11.13 linux/amd64)
When I issued ;
$ go get -u github.com/spf13/cobra@latest

Errors occurred as like below;

github.com/spf13/cobra

../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:36:24: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:404:26: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:447:24: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:459:27: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:497:25: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:508:20: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:523:38: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:551:21: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:593:28: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:615:29: undefined: io.StringWriter
../../../../go/pkg/mod/github.com/spf13/[email protected]/bash_completions.go:615:29: too many errors

How can i resolve it?

Thanks.

@marckhouzam
Copy link
Collaborator

@kyilmaz Using Cobra requires Go 1.15.

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