Skip to content

Conversation

@mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jul 23, 2021

A partial fix for a #1146 . See individual commit messages for details.

@mtrmac mtrmac force-pushed the compression-deps branch from 1bfbba7 to 48f65a8 Compare July 23, 2021 17:48
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jul 23, 2021

This will allow decreasing the impact in openshift/oc#737 , at least. Sadly any c/image/docker client still drags in all the compression implementations, per #1146 (comment) .

mtrmac added 5 commits July 26, 2021 15:05
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... to make the lines shorter. We will soon make them even longer,
so fold them separately to make the actual change easier to review.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
For some reason (??), the Xz algorithm's name starts with an upper-case
letter; use the same for InternalUnstableUndocumentedMIMEQuestionMark .
AFAICS this should not make a difference because InternalUnstableUndocumentedMIMEQuestionMark
is only used for MIME mapping, and xz is not present in any of those tables,
so this is only for consistency.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... so that code can refer to them without depending
on the actual decompression implementations, which
might not be necessary for various metadata operations.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Most importantly this removes a dependency of c/image/manifest
(and thus c/image/signature) on pkg/compression and all the implementations.

Use pkg/compression/types everywhere else it is possible as well,
even if it does not remove any dependency on pkg/compression, just
to enforce the discipline.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac force-pushed the compression-deps branch from 48f65a8 to 3c376ba Compare July 26, 2021 13:09
@rhatdan
Copy link
Member

rhatdan commented Jul 26, 2021

LGTM
@vrothberg PTAL

@nalind
Copy link
Member

nalind commented Jul 26, 2021

LGTM

@rhatdan rhatdan merged commit aa891dc into containers:main Jul 26, 2021
@mtrmac mtrmac deleted the compression-deps branch July 26, 2021 19:36
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.

3 participants