gobuffalo / genny

A framework for writing modular generators
MIT License
65 stars 14 forks source link

quick and dirty implementation of selective fs #44

Closed sio4 closed 2 years ago

sio4 commented 2 years ago

Implemented a quick and dirty selective filesystem to support including/excluding option that can be used as an alternative of Generator.FS().

The current implementation of the Generator/Runner filesystem opens all files under the root when it is initialized. This is dangerous behavior and it introduced the too many open files error of buffalo fix.

For more background information could be found in https://github.com/gobuffalo/cli/issues/116#issuecomment-1065926318

Please take a look at this PR and please release it as a new version. Then I will open a new PR for cli.