Can you show the contents of the go.mod file in the directory where you run 
"go mod tidy"?

> I get this error when I run `go list all` as well.

Try "go list" rather than "go list all" (because in that context, "all" is 
interpreted as the name of a package)

On Thursday, 31 March 2022 at 16:12:24 UTC+1 vaastav...@gmail.com wrote:

> Hi all,
> I am encountering this problem where when I run `go mod tidy`, it simply 
> returns `go: warning: "all" matched no packages`. I get this error when I 
> run `go list all` as well. 
> I was hoping someone could help me as to why this is happening since I 
> haven't been able to find an explanation for this.
>
> Kind Regards
> Vaastav
>

-- 
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/eefcdeaf-3d21-41ad-824b-000c16fcd3e7n%40googlegroups.com.

Reply via email to