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

go get fail #44

Closed
usernameisnull opened this Issue Sep 29, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@usernameisnull
Copy link

usernameisnull commented Sep 29, 2018

λ 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

@usernameisnull

This comment has been minimized.

Copy link
Author

usernameisnull commented Sep 29, 2018

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!!!

@BetaCat0 BetaCat0 closed this Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment