This fixes an issue where calling boilr template use with --use-defaults or -f. All project variables were set to the last default variable.
The iteration variable v was captured inside a closure and all closures ended up pointing to the same string. This fix uses shadowing to create a local copy of the pointer variable to be captured in the closure.
This fixes an issue where calling
boilr template use
with--use-defaults
or-f
. All project variables were set to the last default variable.The iteration variable
v
was captured inside a closure and all closures ended up pointing to the same string. This fix uses shadowing to create a local copy of the pointer variable to be captured in the closure.