cloudfoundry-mesos icon indicating copy to clipboard operation
cloudfoundry-mesos copied to clipboard

Issue in "patch and build auctioneer"

Open tangzhankun opened this issue 10 years ago • 2 comments

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?

tangzhankun avatar Jan 27 '16 04:01 tangzhankun

i have hit the same issue as well.. looks like the code is stale.

opaugam avatar Jan 28 '16 12:01 opaugam

There is a unmerged pull request you can use as a patch for this https://github.com/mesos/cloudfoundry-mesos/pull/4

jianhuiz avatar Jan 28 '16 18:01 jianhuiz