Closed watson-sam closed 1 year ago
@codingamir FYI
+1 can reproduce running go test
on a project using postgres and gorm 1.5.1
+1 I just started a project and it's broken
We are aware of this issue, will be fixed asap, you may follow here https://github.com/go-gorm/postgres/pull/185#issuecomment-1554450633.
temporarily I will be using version 1.5.0. this may be a temporary solution for you too. The truth is that I did not want to be fired because production fell due to an automatic minor update @.@
go get gorm.io/driver/postgres@v1.5.0
@watson-sam
A new tag with the fixes has been created v1.5.2, you may use that.
I am getting errors when building docker containers following the latest release, looks like it due to changes within error_translator.go ?
Error:
gorm.io/driver/postgres
/go/pkg/mod/gorm.io/driver/postgres@v1.5.1/error_translator.go:11:16: undefined: gorm.ErrForeignKeyViolated /go/pkg/mod/gorm.io/driver/postgres@v1.5.1/error_translator.go:42:20: undefined: errCodes