-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
It seems that PATH is overridden when using su. This is not the case when using docker directly.
Instructions to reproduce the bug
$ cat toast.yml
image: eclipse-temurin:11-jdk-focal
tasks:
java_version:
command: java -version
$ toast
[INFO] Ready to run 1 task: java_version.
[INFO] Running task java_version…
bash: java: command not found
Example correct output using docker directly:
$ docker run -t eclipse-temurin:11-jdk-focal java -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode, sharing)
I suspect this is because su
is invoked, and that the PATH environment variable is then overridden.
Environment information:
- Toast version: 0.45.5
- OS:
Linux 5.15.76-1-MANJARO #1 SMP PREEMPT Sat Oct 29 14:22:16 UTC 2022 x86_64 GNU/Linux
Is there any way to fix this?
Thanks for an interesting and good project!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working