diff --git a/copy/copy.go b/copy/copy.go index 3457f0b8cc..aa8d42b5f2 100644 --- a/copy/copy.go +++ b/copy/copy.go @@ -102,8 +102,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 834722800a..0778e229aa 100644 --- a/copy/single.go +++ b/copy/single.go @@ -357,7 +357,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)