1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
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
..
aaparser pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
archive rectify function and variable referred in pkg/archive/changes_linux.go 2016-12-16 14:58:47 +08:00
authorization
broadcaster
chrootarchive Use wrong ApplyLayer in diff_windows.go 2016-12-19 17:21:18 +08:00
devicemapper several function names fixed in devmapper.go 2016-12-21 10:45:28 +08:00
directory
discovery
filenotify It is errNoSuchWatch not errNoSuchPoller in filenotify/poller.go 2016-12-26 16:19:50 +08:00
fileutils
fsutils pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
gitutils
graphdb
homedir gcplogs: forcibly set HOME on static UNIX binary 2016-12-29 03:17:26 +00:00
httputils Enhance pkg/{httputils,integration}, distribution/xfer unit tests 2016-12-28 11:54:05 +01:00
idtools pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
integration Enhance pkg/{httputils,integration}, distribution/xfer unit tests 2016-12-28 11:54:05 +01:00
ioutils
jsonlog
jsonmessage
listeners
locker fix some typos 2016-12-28 09:43:27 +08:00
longpath
loopback
mount
namesgenerator
parsers
pidfile pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
platform
plugingetter Add a GetAll function that returns only managed plugins supported by V2 2016-12-22 10:26:04 -08:00
plugins duplicated the 2016-12-21 20:16:19 +08:00
pools
progress Implement content addressability for plugins 2016-12-23 13:29:58 -08:00
promise
pubsub
random
reexec
registrar
signal
stdcopy
streamformatter
stringid Move imageID validation to stringid pkg 2016-12-26 18:53:22 -08:00
stringutils change minor mistake of spelling 2016-12-20 21:05:19 +08:00
symlink
sysinfo
system make more package in system support darwin 2016-12-26 21:30:06 +08:00
tailfile
tarsum
templates
term
testutil Merge pull request #29314 from vdemeester/no-more-utils 2016-12-22 15:21:05 +01:00
tlsconfig
truncindex pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
urlutil
useragent
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!