golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 610 forks source link

Not working with Private go modules #344

Closed azeezolaniran2016 closed 4 years ago

azeezolaniran2016 commented 4 years ago

I'm running into issues trying to mock interfaces from a private go module

For example:

mockgen -package api -destination name_mock.go github.com/OrgName/v3/pacakage InterfaceName

returns:

ERROR: Repository not found.
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.

I'm able to run go get successfully on this repositories, and I've added the repository to my list of GOPRIVATE repos

azeezolaniran2016 commented 4 years ago

Sorry about this issue, was my mistake. I had a typo in the package name.