You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In layer.GenerateLayer we use CloseWithError to try to propagate layer generation errors to the reader. However, it looks like the errors are dropped at some point (or the pipe is already closed when we error out). This causes us to generate new invalid layers when we should be erroring out.
This is a critical issue and must be solved before 0.0.0.
The text was updated successfully, but these errors were encountered:
It turns out that .Close() will reset the error set by .CloseWithError()
which means that using defer will always cause errors to not be
propagated properly. To fix this, only call .Close* once (though this is
probably a Golang lib bug).
Fixes: cyphar/umoci#33
Reference: golang/go#17992
Signed-off-by: Aleksa Sarai <[email protected]>
In
layer.GenerateLayer
we useCloseWithError
to try to propagate layer generation errors to the reader. However, it looks like the errors are dropped at some point (or the pipe is already closed when we error out). This causes us to generate new invalid layers when we should be erroring out.This is a critical issue and must be solved before
0.0.0
.The text was updated successfully, but these errors were encountered: