append bundled s2i instead of prepend

so it’s lower priority than whatever is already on PATH
pull/12/head
Min RK 2017-05-24 11:47:13 -07:00
rodzic 54d5f85ced
commit 560b3ed563
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,9 @@ class S2IBuildPack(BuildPack):
output_image_spec,
]
env = os.environ.copy()
env['PATH'] = os.pathsep.join([here, env.get('PATH') or os.defpath])
# add bundled s2i to *end* of PATH,
# in case user doesn't have s2i
env['PATH'] = os.pathsep.join([env.get('PATH') or os.defpath, here])
try:
for line in execute_cmd(cmd, cwd=workdir, env=env):
self.log.info(line, extra=dict(phase='building', builder=self.name))