Skip to content

Commit

Permalink
Remove some inaccurate comments
Browse files Browse the repository at this point in the history
Both the referenced features were dropped
in the final version of containers#673
which added these comments.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Mar 10, 2023
1 parent c42f196 commit 2cac6eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions copy/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion copy/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2cac6eb

Please sign in to comment.