crane: add --flatten for index append#1566
Merged
jonjohnsonjr merged 3 commits intogoogle:mainfrom Feb 23, 2023
Merged
Conversation
While it's possible that folks might want to append an index to an index, it's more likely that they would want to merge them. This flag gives them an option to do either.
Contributor
|
I've tested this successfully with a list of images that contains both indexes and a non-index manifest and it flattened correctly 👀 |
imjasonh
reviewed
Feb 16, 2023
Co-authored-by: Jason Hall <jason@chainguard.dev>
Codecov Report
@@ Coverage Diff @@
## main #1566 +/- ##
=======================================
Coverage 72.95% 72.95%
=======================================
Files 118 118
Lines 9417 9417
=======================================
Hits 6870 6870
Misses 1855 1855
Partials 692 692 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
imjasonh
approved these changes
Feb 23, 2023
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.
While it's possible that folks might want to append an index to an index, it's more likely that they would want to merge them. This flag gives them an option to do either.