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

Can't build dev #21

Closed
bao7uo opened this issue Apr 6, 2017 · 1 comment
Closed

Can't build dev #21

bao7uo opened this issue Apr 6, 2017 · 1 comment

Comments

@bao7uo
Copy link

bao7uo commented Apr 6, 2017

./ruler.go:397: too many arguments in call to mapi.QueryRows
./ruler.go:410: undefined: utils.Clear in utils.Clear.Printf
./ruler.go:413: undefined: mapi.STAT
./ruler.go:417: too many arguments in call to mapi.QueryRows
./ruler.go:424: undefined: utils.Clear in utils.Clear.Printf
./ruler.go:446: too many arguments in call to mapi.QueryRows
./ruler.go:457: undefined: mapi.STAT
./ruler.go:462: too many arguments in call to mapi.QueryRows
@staaldraad
Copy link
Collaborator

What's happened here is that you've likely cloned the dev branch into a directory outside of the GOPATH.

For example: ~/ruler
When trying to build, the imports will use GOPATH/src/github.com/sensepost/ruler and thus the mapi.STAT, utils and mapi.QueryRows issues. As these are coming from the imports, that are still on the master branch.

To work with dev, you'll need to clone and overwrite the GOPATH/src/github.com/sensepost/ruler directory.

rm -rf $GOPATH/src/github.com/sensepsot/ruler
git clone -b dev $GOPATH/src/github.com/sensepost/ruler
cd $GOPATH/src/github.com/sensepost/ruler
go build

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

No branches or pull requests

2 participants