Skip to content

Preserve author information in schema1 manifests - #1681

Merged
aaronlehmann merged 1 commit into
distribution:masterfrom
aaronlehmann:preserve-authors-schema1
Apr 29, 2016
Merged

aaronlehmann merged 1 commit into
distribution:masterfrom
aaronlehmann:preserve-authors-schema1

Conversation

@aaronlehmann

Copy link
Copy Markdown

When we push a schema1 manifest, we encode history information from the
image JSON into v1Compatibility strings for the respective layers. The
"author" field was not being set in these v1Compatibility strings, so if
a parent layer had an author set, it would not be preserved after
pushing through a schema1 manifest and repulling, so the image ID would
change after the pull. This change preserves the authorship information
for parent layers so that the image ID does not change.

When we push a schema1 manifest, we encode history information from the
image JSON into v1Compatibility strings for the respective layers. The
"author" field was not being set in these v1Compatibility strings, so if
a parent layer had an author set, it would not be preserved after
pushing through a schema1 manifest and repulling, so the image ID would
change after the pull. This change preserves the authorship information
for parent layers so that the image ID does not change.

Signed-off-by: Aaron Lehmann <[email protected]>
"empty_layer": true
},
{
"author": "Alyssa P. Hacker \[email protected]\u003e",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🍔

@RichardScothern

Copy link
Copy Markdown

LGTM

1 similar comment
@dmcgowan

Copy link
Copy Markdown
Collaborator

LGTM

@aaronlehmann
aaronlehmann merged commit 024a9ed into distribution:master Apr 29, 2016
@aaronlehmann
aaronlehmann deleted the preserve-authors-schema1 branch April 29, 2016 21:40
runcom added a commit to projectatomic/docker that referenced this pull request Oct 10, 2016
Upstream reference: distribution/distribution#1681
Fix BZ#1380474

Signed-off-by: Antonio Murdaca <[email protected]>
runcom added a commit to runcom/docker that referenced this pull request Oct 10, 2016
Upstream reference: distribution/distribution#1681
Fix BZ#1380474

Signed-off-by: Antonio Murdaca <[email protected]>
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.

4 participants