mesos / mesos-go

Go language bindings for Apache Mesos
Apache License 2.0
545 stars 146 forks source link

os/user.Current doesn't work without cgo #290

Open pires opened 7 years ago

pires commented 7 years ago

We need to make sure users of this library are aware of this when cross-compiling their apps.

See https://github.com/golang/go/blob/master/src/os/user/cgo_lookup_unix.go#L46-L50

jdef commented 7 years ago

... and this applies for users of the v0 API, correct?

pires commented 7 years ago

That's correct. I haven't tried v1 yet but I'm assuming it no longer uses HTTP Mesos API (which doesn't automagically find the user for you).

jdef commented 7 years ago

let's clarify things a bit:

jdef commented 6 years ago

Looks like golang 1.9 made some changes related to this? https://golang.org/doc/go1.9#os/user