go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

Failed to build after change to error_translator.go #187

Closed watson-sam closed 1 year ago

watson-sam commented 1 year ago

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

watson-sam commented 1 year ago

@codingamir FYI

thomas-maurice commented 1 year ago

+1 can reproduce running go test on a project using postgres and gorm 1.5.1

AndrusGerman commented 1 year ago

+1 I just started a project and it's broken

saeidee commented 1 year ago

We are aware of this issue, will be fixed asap, you may follow here https://github.com/go-gorm/postgres/pull/185#issuecomment-1554450633.

AndrusGerman commented 1 year ago

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

saeidee commented 1 year ago

A new tag with the fixes has been created v1.5.2, you may use that.