-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
gorm v2 and gorm v1 #243
Comments
It appears this problem stems from the Atlas app toolkit. |
Using this plugin, I occurs some incompatibility problems on gorm v2 version:
|
|
I met same problem results to two versions of gorm in our project go mod file. I finally resolve it by using latest version of code.
|
It would be great to cut a v1.1.3 (or a v2) version so people don't have to do this manually |
While the latest version is now 1.1.4, I am facing below issue. Being new to GoLang, I am not sure what to do next 😅
And depreciation warning :
Even after using the updated function, I get the same error message of mismatched variable types Edit : Solution I changed the version of |
By using
protoc-gen-gorm
generated the *.pb.gorm.go file, the problem is my project of the protobuf service using the"gorm.io/gorm"
is v2 of the gorm project that is not compatible of the"github.com/jinzhu/gorm"
which is v1.After I change the alias
gorm1
of imported package to v2 in the generated code *.pb.gorm.go, the VS code raised a lot of error.The text was updated successfully, but these errors were encountered: