Skip to content

Commit

Permalink
graph-builder: revert the order of layers to start with the topmost
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Nov 6, 2018
1 parent 0121a29 commit dec0bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph-builder/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ pub fn fetch_releases(

let releases = layer_digests_tag
.into_iter()
.rev()
.filter_map(|(layer_digests, tag)| {
let mut found = false;
let mut map = layer_digests.into_iter().filter_map(|layer_digest| {
let mut map = layer_digests.into_iter().rev().filter_map(|layer_digest| {
trace!("Downloading layer {}...", &layer_digest);
if found {
return None;
Expand Down

0 comments on commit dec0bc6

Please sign in to comment.