1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-01 23:41:24 +00:00

Use newer moq that works better with modules

This commit is contained in:
Darren Shepherd 2020-07-11 10:02:19 -07:00
parent c676030ce4
commit 86ca75f99f

View File

@ -545,7 +545,11 @@ func isObjectOrList(t *gengotypes.Type) bool {
}
func generateFakes(k8sDir string, controllers []*types.Schema) error {
m, err := moq.New(k8sDir, "fakes")
m, err := moq.New(moq.Config{
SrcDir: k8sDir,
PkgName: "fakes",
Formatter: "goimports",
})
if err != nil {
return err
}