Skip to content

How to run under gomod #85

@caibirdme

Description

@caibirdme

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions