Vet command & module file with replace directive ==> Error: cannot find module providing package...
已回答
When running the Vet command I get the following error:
cannot find module providing package github.com/davecgh/go-spew/spew: working directory is not part of a module
Since I had to fix the package, I have a local version installed, which I use via the replace feature in the .mod file:
module x
go 1.15
require (
github.com/davecgh/go-spew v1.1.1
)
replace (
github.com/davecgh/go-spew => ../go-spew
)
So, what do I need to fix? Building the package works.
请先登录再写评论。
Hello,
It's a known issue. Feel free to go to GO-9964 and vote for it to stay updated.
You can run go vet action from the Terminal as a workaround.
Thanks for the report.