Skip to content

Conversation

@nalind
Copy link
Member

@nalind nalind commented Apr 19, 2017

Fix canonicalization of layer IDs when computing layer differences, which we also broke in #6.

fromLayer, ok := r.lookup(from)
if !ok {
fromLayer, ok = r.lookup(toLayer.Parent)
to = toLayer.ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this same block of code is copied three times, shouldn't we just add a new function to handle it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a better idea. Fixing that.

Fix canonicalization of layer IDs when computing layer differences,
which we also broke in #6.

Signed-off-by: Nalin Dahyabhai <[email protected]>
@nalind
Copy link
Member Author

nalind commented Apr 19, 2017

Okay, this gets buildah's self-tests working again.

@rhatdan
Copy link
Member

rhatdan commented Apr 19, 2017

LGTM

Much better

@nalind
Copy link
Member Author

nalind commented Apr 19, 2017

Okay, merging it.

@nalind nalind merged commit 6d56c0f into containers:master Apr 19, 2017
@nalind nalind deleted the diff branch June 8, 2017 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants