cloudfoundry-mesos
cloudfoundry-mesos copied to clipboard
Issue in "patch and build auctioneer"
Hi, I encountered this error when follow the "patch and build auctioneer" of getting started.
go get ./...
# github.com/mesos/cloudfoundry-mesos/scheduler
../../../../mesos/cloudfoundry-mesos/scheduler/init.go:50: cannot use secret (type []byte) as type *string in field value
I changed below lines in init.go and it succeeded in compiling auctioneer
secret, err := ioutil.ReadFile(*mesosAuthSecretFile)
str_secret := string(secret[:])
...
cred = &mesos.Credential{
Principal: proto.String(*mesosAuthPrincipal),
Secret: &str_secret,
}
Have you met this issue before? or it is related with my host environment?
i have hit the same issue as well.. looks like the code is stale.
There is a unmerged pull request you can use as a patch for this https://github.com/mesos/cloudfoundry-mesos/pull/4