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:
parent
c676030ce4
commit
86ca75f99f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user