Skip to content

compile failed for mac, undefined: driver.TxOptions #638

Closed
@qhcmler

Description

@qhcmler

osx version 10.11.6
go version 1.8.3

If I tried "go get github.com/go-sql-driver/mysql", few minutes ago I got this:
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:43: undefined: driver.TxOptions
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:55: undefined: sql.IsolationLevel
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:55: undefined: sql.LevelDefault
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:69: undefined: driver.NamedValue
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:88: undefined: driver.NamedValue
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:122: undefined: driver.NamedValue
../../../Desktop/go/src/github.com/go-sql-driver/mysql/connection_go18.go:141: undefined: driver.NamedValue
../../../Desktop/go/src/github.com/go-sql-driver/mysql/utils_go18.go:21: c.Clone undefined (type *tls.Config has no field or method Clone, but does have tls.clone)
../../../Desktop/go/src/github.com/go-sql-driver/mysql/utils_go18.go:24: undefined: driver.NamedValue
../../../Desktop/go/src/github.com/go-sql-driver/mysql/utils_go18.go:36: undefined: driver.IsolationLevel
../../../Desktop/go/src/github.com/go-sql-driver/mysql/utils_go18.go:21: too many errors

I deleted it and download again, no luck.
Please tell me if you know the solve method .
Thanks.....verymuch..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions