Closed usernameisnull closed 5 years ago
I first go get github.com/go-xorm/xorm then go get github.com/go-xorm/cmd/xorm
i think golang confused the core package under "cmd/xorm/vendor/github.com/go-xorm/" and i installed go-xorm so i have to delete "cmd/xorm/vendor/github.com/go-xorm/" and execute go install then ok!!!
λ go get -u github.com/go-xorm/cmd/xorm
github.com/go-xorm/cmd/xorm
E:\gopath\src\github.com\go-xorm\cmd\xorm\dump.go:45:26: cannot use "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LOG_UNKNOWN (type "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LogLevel) as type "github.com/go-xorm/core".LogLevel in argument to engine.Logger().SetLevel E:\gopath\src\github.com\go-xorm\cmd\xorm\reverse.go:228:34: cannot use tables (type []"github.com/go-xorm/core".Table) as type []"github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".Table in argument to langTmpl.GenImports E:\gopath\src\github.com\go-xorm\cmd\xorm\reverse.go:236:18: cannot use table (type "github.com/go-xorm/core".Table) as type "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".Table in append E:\gopath\src\github.com\go-xorm\cmd\xorm\reverse.go:273:26: cannot use table (type "github.com/go-xorm/core".Table) as type "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".Table in array or slice literal E:\gopath\src\github.com\go-xorm\cmd\xorm\shell.go:60:26: cannot use "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LOG_UNKNOWN (type "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LogLevel) as type "github.com/go-xorm/core".LogLevel in argument to engine.Logger().SetLevel E:\gopath\src\github.com\go-xorm\cmd\xorm\source.go:45:26: cannot use "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LOG_UNKNOWN (type "github.com/go-xorm/cmd/xorm/vendor/github.com/go-xorm/core".LogLevel) as type "github.com/go-xorm/core".LogLevel in argument to engine.Logger().SetLevel
C:\Users\Administrator λ go version go version go1.9.3 windows/amd64