Subject of the issue
gomplate using an input template with reference to an environment variable that doesn't exist, still writes an output file.
Your environment
Steps to reproduce
$ gomplate -i 'fail: {{ .Env.BOGUS }}' -o fail.yml
template: <arg>:1:13: executing "<arg>" at <.Env.BOGUS>: map has no entry for key "BOGUS"
Expected behaviour
$ stat -f "%N" fail.yml
stat: fail.yml: stat: No such file or directory
$ test -f fail.yml || echo $?
1
Actual behaviour
$ stat -f "%N" fail.yml
fail.yml
$ test -f fail.yml && echo $?
0
Subject of the issue
gomplateusing an input template with reference to an environment variable that doesn't exist, still writes an output file.Your environment
Steps to reproduce
Expected behaviour
Actual behaviour