On Thu, Mar 16, 2023 at 8:56 AM 'Akhil Agrawal' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
>
> tried with 1.12,1.16,1.19,1.20

This works for me, starting in an empty directory, with Go 1.20.

> go mod init example.com
go: creating new go.mod: module example.com
> go get github.com/spf13/cobra
go: added github.com/inconshreveable/mousetrap v1.0.1
go: added github.com/spf13/cobra v1.6.1
go: added github.com/spf13/pflag v1.0.5

Are you using any sort of Go module proxy?  What does "go env" print?

Ian



> On Thursday, March 16, 2023 at 12:20:16 AM UTC+5:30 Ian Lance Taylor wrote:
>>
>> On Wed, Mar 15, 2023 at 11:10 AM akhil agrawal
>> <akhilag...@gmail.com> wrote:
>> >
>> > Hi Team, i am getting following error
>> > go get github.com/spf13/cobra github.com/spf13/cobra imports 
>> > github.com/spf13/pflag: cannot find module providing package 
>> > github.com/spf13/pflag
>> > on go get github.com/spf13/cobra command,.
>> > Can someone suggest?
>>
>> Works for me. What version of go are you using?
>>
>> Ian
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/f296b0e5-100b-441b-8c00-e997c0cc5c6cn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVtgfp5P9Dv56KVjUXFstgVyD7_cnyhfd%2BjXOD-t%2BoRdQ%40mail.gmail.com.

Reply via email to