Repository navigation
fix(template): fail fast on a file name that fails to render - #189
Merged
Merged
Conversation
Names render with missingkey=error. A parse or execution error in a name aborts Execute naming the source path, or with --continue-on-error skips the path and records a RenderWarning, which template validate reports with exit bit 4. A name that renders empty is still skipped silently.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #186
Summary
missingkey=error, so an undefined variable is an error instead of<no value>Execute, naming the source path undertemplate/; with--continue-on-errorthe path (and a directory's subtree) is skipped with aRenderWarningtemplate validatereports name errors with exit bit4; a name that renders empty is still skipped silently--continue-on-erroris added to thespecs useflags tableDecisions and skipped steps
{{ if .X }}docswith the{{ end }}further down) is now an error, in line with the An absolute rendered file name is dropped silently on Unix #184 docs saying an action cannot span directories, rather than descending into it--continue-on-erroras the escape hatch (the issue's open question): templates that relied on a broken name being dropped now fail, which needs a release notespecs usenames a deleted temp directory. Filed as The 'run specs template validate' hint names a temp directory after specs use #188