InitWithTemplate silently ignores RenderTemplate errors #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
residual/config#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
core/load.go:71—InitWithTemplatesilently ignoresRenderTemplateerrors:If the template has bad
${CONF__...}placeholders or the defaults struct doesn't match, the template file is not written and no error is returned. The caller gets the merged config without the template file, with no indication anything went wrong.Suggested fix
Return the render error, or at minimum log it. The caller should know that first-run template writing failed.
Labels
proj-config-lib, tier-1-easy