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
Hi, could you provide a concrete example of the input and expected output? That would help clarify the use case and determine which existing function (if any) could solve the problem.
Activity
trulede commentedon Feb 7, 2026
Do any of these help? https://sprig.taskfile.dev/
trulede commentedon Feb 19, 2026
@ssbarnea there are clean functions here (more than one): https://sprig.taskfile.dev/paths.html
There is a go function EvalSymlinks, it could be added in this repo:
https://github.com/go-task/slim-sprig/blob/38f81b619418835ccb38a10056359737311c99e3/functions.go#L243
You can easily try that out, and open a PR there if you want.
Djabx commentedon Feb 24, 2026
Hi,
BTW the documentation reference a function
joinPathhere (cc @ssbarnea it's useful for abspath).But I can't find any documentation anywhere here: https://sprig.taskfile.dev/paths.html.
trulede commentedon Feb 28, 2026
The code for all the functions is here, its not difficult to understand:
https://github.com/go-task/slim-sprig/blob/38f81b619418835ccb38a10056359737311c99e3/functions.go#L243
For the functions mentioned, you need to wrap the call and consume the
errreturn value. So, like this:"osAbs" : func(p string) string {abs, _ := filepath.Abs(p); return abs},and the corresponding documentation (https://pkg.go.dev/path/filepath#Abs).
@Djabx @ssbarnea feel welcome to open a PR for the functions you think are missing. Or missing documentation.
tsics commentedon Mar 4, 2026
I'd like to contribute. Please assign this issue to me. Thanks!
@trulede
tsics commentedon Mar 4, 2026
@ssbarnea
Hi, could you provide a concrete example of the input and expected output? That would help clarify the use case and determine which existing function (if any) could solve the problem.
mateenali66 commentedon Mar 25, 2026
opened a PR on slim-sprig to add osAbs: go-task/slim-sprig#23
trulede commentedon Apr 13, 2026
@mateenali66 I think slim-sprig is kind of dead. If you want to add a function its better to open a PR in this repo, here
https://github.com/go-task/task/blob/main/internal/templater/funcs.go
feat(templater): add absPath template function
mateenali66 commentedon Apr 13, 2026
opened #2788 adding absPath directly to internal/templater/funcs.go, thanks for the pointer @trulede. closed go-task/slim-sprig#23 in favor of that.