322ecc858f
In #14742 we introduced a cached lookup of the `nobody` user, which is only ever called on Unixish machines. But the initial caching was being done in an `init` block, which meant it was being run on Windows as well. This prevents the Nomad agent from starting on Windows. An alternative fix here would be to have a separate `init` block for Windows and Unix, but this potentially masks incorrect behavior if we accidentally added a call to the `Nobody()` method on Windows later. This way we're forced to handle the error in the caller. |
||
---|---|---|
.. | ||
input | ||
alloc_dir.go | ||
alloc_dir_test.go | ||
fs_darwin.go | ||
fs_freebsd.go | ||
fs_linux.go | ||
fs_linux_test.go | ||
fs_solaris.go | ||
fs_unix.go | ||
fs_windows.go | ||
task_dir.go | ||
task_dir_linux.go | ||
task_dir_nonlinux.go | ||
task_dir_test.go | ||
testing.go |