joncrlsn/pgdiff

Error for compile

KanorUbu opened this issue · 4 comments

Hi
I am not developer in go.
I essay to compile
Here my procedure

go version
go version go1.9.2 linux/amd64
go get "github.com/joncrlsn/misc"
go get  "github.com/joncrlsn/pgutil"
go get "github.com/lib/pq"
go get  "github.com/ogier/pflag"
go build
./column.go:114:19: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./flags.go:34:132: unknown field 'DbSchema' in struct literal of type pgutil.DbInfo
./flags.go:36:132: unknown field 'DbSchema' in struct literal of type pgutil.DbInfo
./foreignkey.go:127:19: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:116:12: dbInfo1.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:116:32: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:120:42: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:151:13: dbInfo1.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:151:33: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:155:43: dbInfo2.DbSchema undefined (type pgutil.DbInfo has no field or method DbSchema)
./function.go:155:43: too many errors

DbSchema don't exist in the struct DbInfo (pgutil.go)

type DbInfo struct {
    DbName    string
    DbHost    string
    DbPort    int32
    DbUser    string
    DbPass    string
    DbOptions string
}

Bad version of go, pgutil… ?

And Thank you for development of this project 👍

Thanks for the feedback. I'll look at it tonight.

If it's easier, you can download the appropriate binary here: https://github.com/joncrlsn/pgdiff/releases

Yes, I use already. I have a development to have only difference the tables columns without views.
I would like test :)

Hi Kanor, I just fixed the pgutil package. I'm sorry about that. I forgot to commit that minor, but important, change.

go get -u github.com/joncrlsn/pgutil

Thank you, it run