docker/pkg/homedir
Akihiro Suda b86e3bee5a gcplogs: forcibly set HOME on static UNIX binary
Fix #29344

If HOME is not set, the gcplogs logging driver will call os/user.Current() via oauth2/google.
However, in static binary, os/user.Current() leads to segfault due to a glibc issue that won't be fixed
in a short term. (golang/go#13470, https://sourceware.org/bugzilla/show_bug.cgi?id=19341)
So we forcibly set HOME so as to avoid call to os/user/Current().

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-12-29 03:17:26 +00:00
..
homedir.go Revert "resolve the config file from the sudo user" 2016-02-29 13:51:43 +01:00
homedir_linux.go gcplogs: forcibly set HOME on static UNIX binary 2016-12-29 03:17:26 +00:00
homedir_others.go gcplogs: forcibly set HOME on static UNIX binary 2016-12-29 03:17:26 +00:00
homedir_test.go pkg/homedir: implement GetShortcutString() 2015-02-18 22:56:03 -08:00