matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
1.99k stars 126 forks source link

Issue with imports having similar module path #146

Closed akoserwal closed 3 years ago

akoserwal commented 3 years ago

I am importing

        amv1 "github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1"
    clustersmgmtv1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1"

when I am generating mock for client Generated like

       "github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1"
    "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1"

Error build error

client_moq.go:8:2: v1 redeclared as imported package name previous declaration a /client_moq.go:7:2