Skip to content

Commit

Permalink
FIXME FIXME: Add FIXMEs
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jun 15, 2022
1 parent db2c360 commit dc9eca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions copy/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (ic *imageCopier) blobPipelineCompressionStep(stream *sourceStream, canModi
// WARNING: If you are adding new reasons to change the blob, update also the OptimizeDestinationImageAlreadyExists
// short-circuit conditions
layerCompressionChangeSupported := ic.src.CanChangeLayerCompression(stream.info.MediaType)
// FIXME: More debug logs about this decision?
canChangeCompression := canModifyBlob && layerCompressionChangeSupported
if canChangeCompression {
for _, fn := range []func(*sourceStream, bpDetectCompressionStepData) (*bpCompressionStepData, error){
Expand Down
1 change: 1 addition & 0 deletions copy/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ func (c *copier) copyOneImage(ctx context.Context, policyContext *signature.Poli
// that the compressed version coming from a third party may be designed to attack some other decompressor implementation,
// and we would reuse and sign it.
// - Finally, let the image format handler influence this (in particular to disable substitution for OCI artifacts).
// FIXME: More debug logs about this decision?
ic.canSubstituteBlobs = ic.cannotModifyManifestReason == "" && options.SignBy == "" && ic.src.CanSubstituteLayers()

if err := ic.updateEmbeddedDockerReference(); err != nil {
Expand Down

0 comments on commit dc9eca0

Please sign in to comment.