gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
157 stars 12 forks source link

Boilerplate renders output folder twice if set to a subfolder within the template folder #97

Open yorinasub17 opened 2 years ago

yorinasub17 commented 2 years ago

Describe the bug If you set the output folder to be in the same folder as the template folder, boilerplate does unnecessary multiple passes of the output folder, presumably due to the fact that the output folder is created first.

Expected behavior Boilerplate should only render the output folder once.

Additional context Alternatively, we should consider preventing the user from setting an output folder within the template folder, since that can lead to all sorts of unexpected issues, such as breaking idempotency (if you run twice, the output folder will be processed as a template by boilerplate.