Client::pull
returns layers in non-deterministic order
#134
Labels
enhancement
New feature or request
Client::pull
returns layers in non-deterministic order
#134
The code for
Client::pull
usesbuffer_unordered
under the hood (see here). Because of this, layers are stored in arbitrary order inImageData::layers
. Unfortunately, this makes it impossible to know which layer fromImageData::layers
corresponds to which entry inOciImageManifest::layers
, unless you recalculate the hash (which seems like a waste of resources).IMO we should either store the layers in
ImageData::layers
in their original order, or provide a mechanism to cheaply correlate them to the layers inOciImageManifest::layers
(e.g. including an index number).The text was updated successfully, but these errors were encountered: