* Fix formatting for template zip generator
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: style
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve formant performance in template generation
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve memory footprint of template generation
Use streamlined generation which is limiting need for in memory buffers.
Might be imprtant if we had big files in templates.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Generate templates unconditionally
Rationale:
The way we create prerequisites (the find command) we cannot detect deleted files.
The generation is fast (around 500ms) so we can afford that.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Test embbeded templates content on push to main
This has to run prior to `make test` because the `test` recipe
enforces generation of the templates zip.
This would prevent test from being run against git commited templates
zip.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Optimization don't use unnecessary io.Pipe
Signed-off-by: Matej Vasek <mvasek@redhat.com>