You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gomplate processes entire directory of files and sub-directories, and copies/creates/materializes each one in a desired target folder. The problem is when gomplate tries to process files like .jar or images and fails because of unexpected delimiter like characters in those files. This is totally not predictable because we cannot say what those binary files contain and if they happen to overlap with gomplate or any other templating engine syntax.
It would be great if gomplate could support exclude such files from processing for templating but still copy them to the target folder. This is a classic case when the folder you are processing is a project template (like Java or other).
Exclusion may fall into one of the following categories
None (default)
FromProcessing (but shall be copied to the target folder)
FromCopying (+Processing, the —exclude option)
An option like —exclude-processing that complements the existing —exclude would be great.
Manually copying using the postexec is possible but fragile because it is hard to guarantee that all the files not processed are picked up without skipping any file or folder and copied in the postexec step.
gomplate processes entire directory of files and sub-directories, and copies/creates/materializes each one in a desired target folder. The problem is when gomplate tries to process files like .jar or images and fails because of unexpected delimiter like characters in those files. This is totally not predictable because we cannot say what those binary files contain and if they happen to overlap with gomplate or any other templating engine syntax.
Exclusion may fall into one of the following categories
None
(default)FromProcessing
(but shall be copied to the target folder)FromCopying
(+Processing, the —exclude option)An option like
—exclude-processing
that complements the existing—exclude
would be great.Manually copying using the
postexec
is possible but fragile because it is hard to guarantee that all the files not processed are picked up without skipping any file or folder and copied in thepostexec
step.Ref: See Discussion for details
The text was updated successfully, but these errors were encountered: