-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile failed for mac, undefined: driver.TxOptions #638
Comments
The same issue on linux: working with go 1.7 |
Have you cleared I suspect you uses Go 1.7's |
@methane Thank you very much, GOARCH="amd64" This is a strange issue, I did't searched enough hints on internet, almost nobody got this issue. |
It may because your Go 1.8 is installed dirtily. |
@methane Thanks for your hint, it helped me, I had reinstalled Golang1.8 and solved this issue. |
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..
The text was updated successfully, but these errors were encountered: