-
Notifications
You must be signed in to change notification settings - Fork 599
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
github.com/masterminds/sprig, used by chezmoi, has unfortunately become a popular library of template functions despite several critical issues:
- It is unmaintained.
- The argument order of its functions is incompatible with Go template's pipelining (see Add more config management functions #2215).
- Its naming convention does not match Go's (e.g.
toJsonshould betoJSON).
Describe the solution you'd like
chezmoi's template functions should be up-to-date, compatible with Go template pipelining, and match Go's naming conventions.
Describe alternatives you've considered
Keeping minorminds/sprig template functions as-is.
Additional context
A smooth transition should be provided, with both old and replacement template functions being available to users for some time. Users can use .chezmoiversion to help the transition.
halostatue, bradenhilton, sm1999, alker0, ianrobrien and 6 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request