luet/pkg/compiler/backend
Itxaka 1bd4d520a4
Add 2 new events for image unpacking (#226)
* Reduce possibility of circular dependency

Just by adding an import for bus to anything in the helper dir, we would
run into a circular dependency due to how things are structured. That
means that we cannot set any events for unpacking or docker helper
pulling an image.

This commit tries to work around this by doing several things.
 - Remove full imports of the helper module by segmentating some modules
   into their own submodule, like docker or match so just using a small match
   function doesnt bring the whole module
 - Removing a simple function to check if a dir exists from importing
   the full helper module and instead write the function (5 lines)
 - Using logrus in the bus module instead of logger, which avoids a
   circular dependency

Signed-off-by: Itxaka <igarcia@suse.com>

* Add two new events for unpacking an image

Both pre and post unpacking an image

Signed-off-by: Itxaka <igarcia@suse.com>
2021-06-01 16:43:31 +02:00
..
backend_suite_test.go Support logging level and spinner customization 2020-01-01 13:43:22 +01:00
common.go Refactor compiler and annotate buildoptions into compiler metadata 2021-04-16 13:57:54 +02:00
simpledocker_test.go Add 2 new events for image unpacking (#226) 2021-06-01 16:43:31 +02:00
simpledocker.go Add 2 new events for image unpacking (#226) 2021-06-01 16:43:31 +02:00
simpleimg.go Refactor compiler and annotate buildoptions into compiler metadata 2021-04-16 13:57:54 +02:00
writer.go Uncomplicate runCommand and return command output 2021-02-22 11:44:46 +01:00