diff --git a/copy/copy.go b/copy/copy.go index 02c2bd0d8..bf8f4015b 100644 --- a/copy/copy.go +++ b/copy/copy.go @@ -101,8 +101,6 @@ type Options struct { // If OciEncryptConfig is non-nil, it indicates that an image should be encrypted. // The encryption options is derived from the construction of EncryptConfig object. - // Note: During initial encryption process of a layer, the resultant digest is not known - // during creation, so newDigestingReader has to be set with validateDigest = false OciEncryptConfig *encconfig.EncryptConfig // OciEncryptLayers represents the list of layers to encrypt. // If nil, don't encrypt any layers. diff --git a/copy/single.go b/copy/single.go index 6d89c07bd..c7b52ac9e 100644 --- a/copy/single.go +++ b/copy/single.go @@ -364,7 +364,6 @@ func (ic *imageCopier) copyLayers(ctx context.Context) error { return err } srcInfosUpdated := false - // If we only need to check authorization, no updates required. if updatedSrcInfos != nil && !reflect.DeepEqual(srcInfos, updatedSrcInfos) { if ic.cannotModifyManifestReason != "" { return fmt.Errorf("Copying this image would require changing layer representation, which we cannot do: %q", ic.cannotModifyManifestReason)