Description
After 1.25.5 -> 1.25.7 upgrade error is thrown
cannot use namingStrategy (variable of type NamingStrategy) as schema.Namer value in struct literal: NamingStrategy does not implement schema.Namer (missing method UniqueName)
in
db, err = gorm.Open(mysql.Open(dsn), &gorm.Config{
NamingStrategy: namingStrategy,
[...]
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: pboguslawski
Problem does not occur in 1.25.5 and occurs in 1.25.6 and 1.25.7.
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: pboguslawski
Problem was specific to our code (overridden NamingStrategy required extending with UniqueName) but was caused by Namer interface change that probably should not be tagged with patch version but with major version. Please verify and adjust versioning if required.
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨