Drone

Drone plugin execution fails with template error

Hi All

I have developed a drone plugin which uses drone-template-lib for some notification template and was working fine for last one year but after making some recent changes with the code it fails with the below error during pipeline execution from drone:

panic: Helper function must return a string or a SafeString: mustRegexFindAll
3 goroutine 1 [running]:
4 github.com/aymerick/raymond.ensureValidHelper(0x86ac3a, 0x10, 0x7f3f60, 0x882a20, 0x13)
5 /usr/local/go/src/github.com/aymerick/raymond/helper.go:84 +0x1d6

I have tested with both the drone version 0.8 and 1.x as well getting same error at both the places.
Docker version being used:17.12.0-ce
golang version used: 1.10

In my plugin code i can see only drone-template-lib/template using this aymerick/raymond dependency.

Raising this issue here as didn’t find issue tab in the drone-template-lib github page

Regards
Rohit