diff --git a/utils/utils.go b/utils/utils.go index 296917b9..90b4c8ea 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -16,7 +16,7 @@ var gormSourceDir string func init() { _, file, _, _ := runtime.Caller(0) // compatible solution to get gorm source directory with various operating systems - gormSourceDir = regexp.MustCompile(`utils.utils\.go`).ReplaceAllString(file, "") + gormSourceDir = regexp.MustCompile(`gorm.utils.utils\.go`).ReplaceAllString(file, "") } // FileWithLineNum return the file name and line number of the current file