Open Asday opened 2 years ago
Just to clarify, you'd like to view aggregate changes from an arbitrary start
layer, to an arbitrary end
layer, instead of seeing the diff from the beginning to the current layer?
If so, that's currently not possible.
You've understood me perfectly, and also saddened me. Thank you.
In that case I'll leave this issue open as a feature request.
Don't hold your breath, though, the project isn't too active, unfortunately. Last significant changes were made back in 2020.
If you do decide to take matters into your own hands, please base it on top of #399 since it contains some much needed fixes already.
Suppose I have a
Dockerfile
with many layers, then the followingThen perhaps some more layers. Is there a way in dive to see the aggregate changes from the start of those three layers to the end, such that I can see what to
COPY
in a multi-stage build? As far as I can tell, I can only see the diff from the start to the end of a single layer, or from the start of the most base docker image(?) to the end of the current layer, which has a great deal of noise.Note that I could change the
Dockerfile
to read something likeBut that involves installing the build requirements every time the python package requirements change, rather than simply reusing a previous layer. (I'm also aware of buildkit's cache mounts and
--no-cache
forapk
, but they're not relevant enough to the question to muddy the examples).