tmrts / boilr

:zap: boilerplate template manager that generates files or directories from template repositories
Apache License 2.0
1.73k stars 119 forks source link

Fixes issue with late-binding inside closure #74

Closed Ilyes512 closed 6 years ago

Ilyes512 commented 6 years ago

It was getting the last value of v instead of the specific value at the time.

So I noticed this happening when I performed the fallowing:

boilr template use <template> <targe> -f

So -f should use the defaults without prompting... what happend was dat it would fill in the last value inside the project.json and fill that in on all spots.

Ilyes512 commented 6 years ago

BTW the same might be happening here: https://github.com/tmrts/boilr/blob/master/pkg/template/template.go#L119-L138 But didn't touched that because not sure what it does and it seems to work?

Ilyes512 commented 6 years ago

I just went on and hard-forked...