facebookarchive / flashback

Capture and replay real mongodb workloads
Other
217 stars 72 forks source link

multiple-value gopass.GetPasswd() in single-value context when installing #36

Open gabocic opened 8 years ago

gabocic commented 8 years ago

myserver$ go get github.com/ParsePlatform/flashback/cmd/flashback

github.com/mongodb/mongo-tools/common/password

gopath/src/github.com/mongodb/mongo-tools/common/password/pass_util.go:20: multiple-value gopass.GetPasswd() in single-value context

tredman commented 8 years ago

This is an issue in the mongo-tools lib and one of its dependencies. Details here: https://github.com/mongodb/mongo-tools/issues/56 - I guess I'll leave this open until the dependency is fixed, but there's not much we can do in flashback until the compile error is fixed in mongo-tools.

gabocic commented 8 years ago

Ok, got it. Thanks for your quick response!

ys-roposo commented 8 years ago

Any work around until the mongo-tools is fixed? like pin mongo-tools dependency to any specific working version?

tredman commented 8 years ago

If you checkout gopass based on this commit (https://github.com/howeyc/gopass/commit/690bfe66b9c415ca9c241192a95008baabd6cbe9) you should still be able to build flashback.

I'm not sure how you can solve this cleanly with "go get" as it seems to fetch the latest commit. But here are the steps I followed:

$ go get github.com/howeyc/gopass
$ cd $GOPATH/src/github.com/howeyc/gopass
$ git checkout 690bfe66b9c415ca9c241192a95008baabd6cbe9
$ rm -f $GOPATH/pkg/github.com/howeyc/gopass.a
$ cd $GOPATH/src/github.com/flashback/cmd/flashback
$ go build

Hope this helps.

ys-roposo commented 8 years ago

Thanks, resolved using this patch https://github.com/mongodb/mongo-tools/pull/57