Specifying templates in the `.gomplate.yaml` causes no output to be rendered
stouset opened this issue · 6 comments
❯ gomplate --version
gomplate version 3.11.7
❯ cat .gomplate.yaml
templates:
foo.t:
url: file://foo.t
❯ cat foo.t
abc
❯ cat bar.t
{{ template "foo.t" }}
❯ gomplate --verbose < bar.t
❯ rm .gomplate.yaml
❯ gomplate --verbose --template foo.t < bar.t
21:25:57 DBG starting gomplate
21:25:57 DBG config is:
---
templates:
foo.t:
url: file:///var/folders/_m/hjhtwf1s75d3cwc3c0rc08jc0000gn/T/tmp.dj1fS1HM1E/foo.t
build= version=3.11.7
abc
This causes an early-exit (with exit status zero) before any logging is even output. It seems to be a parser failure of the .gomplate.yaml
, but I have even attempted to use the literal output from the printed DBG config
and the same issue occurs.
I ran into the same problem and the pre-release version 4.0.0-pre-2
worked for me.
thanks for the followup @NiceGuyIT! @stouset is using 4.0.0-pre-2
an option for you?
One issue with your original config is file://foo.t
is not a valid absolute file URL - file URLs must have file:///
as a prefix (three /
characters). That may or may not be the cause, but it's a potential factor...
I tried that as well with no luck.
This issue is stale because it has been open for 60 days with no
activity. If it is no longer relevant or necessary, please close it.
Given no action, it will be closed in 14 days.
If it's still relevant, one of the following will remove the stale
marking:
- A maintainer can add this issue to a milestone to indicate that
it's been accepted and will be worked on - A maintainer can remove the
stale
label - Anyone can post an update or other comment