goreporter icon indicating copy to clipboard operation
goreporter copied to clipboard

How to run under gomod

Open caibirdme opened this issue 4 years ago • 1 comments

the project layout is blow:

-myProject
  -libA
  -cmd
    -server
      -main.go
    -client
      -main.go
  -libB
  -go.mod
  -go.sum

When I run cd myProject && goreporter -p ., it warns me that:

package myProject/cmd/server is not in GOROOT
package myProject/cmd/client is not in GOROOT
package myProject/libA is not in GOROOT
package myProject/libB is not in GOROOT

How could I fix this?

caibirdme avatar Sep 22 '20 02:09 caibirdme

link

lhlyu avatar Sep 03 '21 06:09 lhlyu