go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

v1.3.8 has a compile time error #119

Closed iamemilio closed 2 years ago

iamemilio commented 2 years ago
    gormdb, err := gorm.Open(postgres.New(postgres.Config{
        DSN:        connectionString,
    }), &gorm.Config{})
    if err != nil {
        log.Fatal(err)
    }

results in:

# gorm.io/driver/postgres
../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:617:57: undefined: gorm.Index
../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:618:25: undefined: gorm.Index
../../../go/pkg/mod/gorm.io/driver/postgres@v1.3.8/migrator.go:628:25: undefined: migrator.Index
x1nchen commented 2 years ago

https://github.com/go-gorm/postgres/pull/118 I suppose the PR should fix this issue.