You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mockery migration tool fails to correctly update the pkgname attribute in configuration files. When migrating from an older version to a newer version, it does not convert outpkg: {{.PackageName}} to pkgname: {{.SrcPackageName}}, causing compatibility issues with newer mockery versions.
Reproducer
Start with an older mockery config file containing:
outpkg: "{{.PackageName}}"
Run the migration tool to convert to the newer version
The migrated file still contains pkgname: "{{.PackageName}}" instead of pkgname: "{{.SrcPackageName}}"
Expected behavior
The migration tool should update the pkgname attribute from {{.PackageName}} to {{.SrcPackageName}} to ensure compatibility with newer versions of mockery.