Repository navigation
Preserve author information in schema1 manifests - #1681
Merged
aaronlehmann merged 1 commit intoApr 29, 2016
Merged
Conversation
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", |
|
LGTM |
1 similar comment
Collaborator
|
LGTM |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.