Skip to content

Commit

Permalink
Remove the image manifest check from find successors (#2018)
Browse files Browse the repository at this point in the history
## Description

This removes a check from find successors that would cause it to not
find successors for manifests that are not images.

## Related Issue

Fixes #N/A

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed
  • Loading branch information
Racer159 committed Sep 19, 2023
1 parent 262b8ff commit 236194d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pkg/oci/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ func (o *OrasRemote) CopyWithProgress(layers []ocispec.Descriptor, store oras.Ta
}

copyOpts.FindSuccessors = func(ctx context.Context, fetcher content.Fetcher, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) {
if desc.MediaType != ocispec.MediaTypeImageManifest {
return nil, nil
}
nodes, err := content.Successors(ctx, fetcher, desc)
if err != nil {
return nil, err
Expand Down

0 comments on commit 236194d

Please sign in to comment.