Skip to content
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

error compiling basecli #294

Closed
wighawag opened this issue Dec 8, 2017 · 2 comments
Closed

error compiling basecli #294

wighawag opened this issue Dec 8, 2017 · 2 comments

Comments

@wighawag
Copy link

wighawag commented Dec 8, 2017

executing the following

go get -u github.com/cosmos/cosmos-sdk/examples/basecoin/cmd/basecli

leads to

# github.com/cosmos/cosmos-sdk/errors
C:\Users\wighawag\go\src\github.com\cosmos\cosmos-sdk\errors\main.go:11:24: undefined: types.CodeType_InternalError
C:\Users\wighawag\go\src\github.com\cosmos\cosmos-sdk\errors\main.go:25:14: undefined: types.CodeType
C:\Users\wighawag\go\src\github.com\cosmos\cosmos-sdk\errors\main.go:31:7: undefined: types.CodeType
# github.com/tendermint/light-client
C:\Users\wighawag\go\src\github.com\tendermint\light-client\checkpoint.go:39:17: cannot use c.Header.Height (type int64) as type int in return argument
C:\Users\wighawag\go\src\github.com\tendermint\light-client\checkpoint.go:63:43: cannot use c.Commit.Height() (type int64) as type int in argument to ErrHeightMismatch
C:\Users\wighawag\go\src\github.com\tendermint\light-client\checkpoint.go:63:55: cannot use c.Header.Height (type int64) as type int in argument to ErrHeightMismatch

go version go1.9.1 windows/amd64

@ethanfrey
Copy link
Contributor

Yeah, other repos (tendermint and abci) were just released and a new release of cosmos-sdk needs to be made to match them.

Best bet is trying make all, which uses glide install and fixed dependencies, until the next sdk release (hopefully soon?). If you want to use tendermint 0.13.0 already and not 0.12.1, go for develop, otherwise, just stick to master and this trick will help it compile.

@zramsay
Copy link
Contributor

zramsay commented Jan 10, 2018

@wighawag if using make didn't work, please re-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants