From 202e73c7ad470e0608c19d928a706092e8661c67 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Thu, 10 Dec 2015 15:35:53 +0100 Subject: [PATCH] builder: remove container package dependency Signed-off-by: Tibor Vass --- system/path_unix.go | 8 ++++++++ system/path_windows.go | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 system/path_unix.go create mode 100644 system/path_windows.go diff --git a/system/path_unix.go b/system/path_unix.go new file mode 100644 index 0000000..1b6cc9c --- /dev/null +++ b/system/path_unix.go @@ -0,0 +1,8 @@ +// +build !windows + +package system + +// DefaultPathEnv is unix style list of directories to search for +// executables. Each directory is separated from the next by a colon +// ':' character . +const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" diff --git a/system/path_windows.go b/system/path_windows.go new file mode 100644 index 0000000..09e7f89 --- /dev/null +++ b/system/path_windows.go @@ -0,0 +1,7 @@ +// +build windows + +package system + +// DefaultPathEnv is deliberately empty on Windows as the default path will be set by +// the container. Docker has no context of what the default path should be. +const DefaultPathEnv = ""