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
task: "test-fails" started
task: [test-fails] echo LINE 'hello world!'
LINE hello world!
task: [test-fails] echo LINE 'lorem ipsum'
LINE lorem ipsum
task: [test-fails] echo LINE 'dolor sit amet'
LINE dolor sit amet
task: "test-fails" finished
I assume changing case stanza from case []any: to case []any, []string: will solve the issue - but I'm not sure about side effects. EDIT: it doesn't work without type casting, proper code in #1823.
Task version: 3.39.2
Operating system: MacOS
Experiments enabled: no
The text was updated successfully, but these errors were encountered:
Both
splitArgs
andsplitLines
functions returns[]string
type, which is not[]any
, causing error:Simple test:
Probably wrapping with ANY (pun intended) list function will do the trick. I've checked with:
and:
both are working and result is as expected:
Please check:
task/variables.go
Line 312 in 58ab26c
task/internal/templater/funcs.go
Line 26 in 58ab26c
task/internal/templater/funcs.go
Line 45 in 58ab26c
I assume changing case stanza from
case []any:
tocase []any, []string:
will solve the issue - but I'm not sure about side effects. EDIT: it doesn't work without type casting, proper code in #1823.The text was updated successfully, but these errors were encountered: