go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

unknown import path "main": cannot find module providing package main

Open danielyaa5 opened this issue 4 years ago • 2 comments

My project uses go modules. There is only one package main and Id like to get a callgraph for my project, my directory structure is as such

vendor src > main.go go.mod

So I can manage to figure it out, I tried go-callvis main and go-callvis . but I get the following error

unknown import path "main": cannot find module providing package main

danielyaa5 avatar Feb 08 '21 19:02 danielyaa5

the same

hehuilei avatar Apr 29 '22 07:04 hehuilei

Please, try changing your current directory to the directory of the main package.

ondrajz avatar Aug 07 '22 22:08 ondrajz