* chore: update references to zz_filesystem_generated.go
Some places were missed in the repo restructuring. This should fix
test_infra build failures.
Signed-off-by: Lance Ball <lball@redhat.com>
* fix: do not put "." into template zip array (#24)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
---------
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <matejvasek@gmail.com>
* Improve test error output
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Template ZIP generator close file after use
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve template ZIP generation
Use only 755 and 644 mod permission.
The exec bit is really the only one that we care about.
Also other bits may be set differently on developer machines depending
on its configuration, this would affect generation reproducibility.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Add explanatory comment
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* 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>