Commit 8419a2df authored by Jérome Perrin's avatar Jérome Perrin

software/theia: use a wrapper for shell

To remove GIT_EXEC_PATH from environment as this can break running
buildout with slapos.recipe.build:gitclone sections using an
incompatible git version
parent 6d945d7d
......@@ -15,7 +15,7 @@
[instance]
filename = instance.cfg.in
md5sum = 21735765808aac82fb91d53341a3c0d6
md5sum = 9e54a4e1ff1cd609420643ec1251f32f
[yarn.lock]
filename = yarn.lock
......
......@@ -96,7 +96,7 @@ recipe = slapos.cookbook:userinfo
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
command-line =
env LC_ALL=C.UTF-8 TMP=$${directory:tmp} ${theia-wrapper:rendered} --hostname=$${:hostname} --port=$${:port}
env LC_ALL=C.UTF-8 TMP=$${directory:tmp} THEIA_SHELL=$${theia-shell:wrapper-path} ${theia-wrapper:rendered} --hostname=$${:hostname} --port=$${:port}
ip = $${instance-parameter:ipv4-random}
hostname = $${:ip}
......@@ -106,6 +106,13 @@ hash-existing-files =
${yarn.lock:output}
${theia-wrapper:rendered}
[theia-shell]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:bin}/$${:_buildout_section_name_}
command-line =
# reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555
env GIT_EXEC_PATH= $SHELL
[promises]
recipe =
instance-promises =
......
......@@ -267,7 +267,6 @@ template =
export PATH=${nodejs:location}/bin/:${python-language-server:location}/bin/:${bash:location}/bin/:${git:location}/bin/:$PATH
. ${gowork:env.sh}
export THEIA_DEFAULT_PLUGINS="local-dir:${theia:THEIA_DEFAULT_PLUGINS}"
export SHELL=bash
# reset PS1 from gowork
export PS1='$ '
cd ${theia:location}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment