Open sralchemab opened 8 months ago
I think the problem is that "/home/ec2-user/miniconda/bin:$PATH"
will resolve $PATH
immediately rather than in the task environment. Instead you should do "/home/ec2-user/miniconda/bin:\$PATH"
Tried that as well. Getting same result.
How about single quotes: '/home/ec2-user/miniconda/bin:$PATH'
Same thing.
Bug report
Expected behavior and actual behavior
When I set then
env
config scope for thePATH
variable, its value is passed properly when I use "local" executor (with and without docker). However, when I use AWS Batch as executor, thePATH
variable never gets the provided value while other variables are properly passed.Steps to reproduce the problem
It can be tested with a minimal task on a
main.nf
file and the following values on thenextflow.config
file:Program output
Here's the command.run file (I had to rename it to
txt
to attach it here). You will notice on thenxf_main
function the following values:And when I run the
env
command on the task itself, I get the following values (some vars were removed):Environment
23.10.0
Amazon Linux 2023