Scalingo / go-utils

Small libraries and helpers concerning errors, logging, nsq
6 stars 2 forks source link

gomock_generator. Add --source-path option #930

Open sc-zenokerr opened 1 month ago

sc-zenokerr commented 1 month ago

Add a --source-path option that allows for the user to specify the location of their codebase.

e.g. gomocks_generator --source-path

sc-zenokerr commented 1 month ago

Hi @EtienneM .

The reason is that the local version of the codebase might not be in the default location.

Prior to this change, a codebase such as Scalingo/go-utils would be located $GOPATH/src/github.com/Scalingo/swan-agent

gomock_generator REQUIRES the codebase to be located in the default location.

The --source-path option allows us to locate the codebase somewhere other than the default location.