Closed simonferquel closed 5 years ago
Squashed & cleaned-up a bit the fixup logic @silvin-lubecki @ijc PTAL
@simonferquel you've ended up commiting a file called nul
here again...
Yes, don't know why, anytime I run the e2e tests locally, I get this file created and my reflex of doing git add . && git commit --sm "blabla"
makes it appear againg and again...
nul
is the windows equivalent of /dev/null
I suppose? I wonder if it is the value of ioutil.Discard
on Windows (devnull(0)
) or something?
@chris-crone @ijc I'll wait for your feedback to squash / remove the nul
file
Just squashed (and removed the nul file). Waiting for @chris-crone GO to merge.
This introduce an event sink instead of logging everything to os.Stderr. The goal is for client code to control the rendering of events in a meaningfull way.
3 events are exposed:
CopyImageStart
: happens when the fixup logic starts working on an imageCopyImageEnd
: happens when the fixup logic ends working on an image (Error field is populated on error)Progress
: a new progress snapshot has been recordedThe Client Code can choose the granularity of its display. The Progress snapshot exposes the whole graph of descriptor currently processed by the fixup logic.
Example of rich output that can be done: