Skip to content

Commit

Permalink
chore: fixes formatting with make sanity
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Oct 2, 2023
1 parent 7f6bdfb commit 2b51c31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion nodes/collection/loader/manifest_to_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func addOrGetNode(graph *collection.Collection, desc ocispec.Descriptor) (model.
// Changes:
// - Added FetcherFunc to allow for custom fetching of content.


// getSuccessor returns the nodes directly pointed by the current node. This is adapted from the `oras` content.Successors
// to allow the use of a function signature to pull descriptor content.
func getSuccessors(ctx context.Context, fetcher FetcherFunc, node ocispec.Descriptor) ([]ocispec.Descriptor, error) {
Expand Down
2 changes: 1 addition & 1 deletion registryclient/orasclient/oras.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (c *orasClient) setupRepo(ref string) (*remote.Repository, error) {
}

// TODO(jpower432): PR upstream so that this can be done with the pre-copy option. Currently the error to skip descriptors is
// private
// private
// Reference: https://github.com/oras-project/oras-go/blob/9e5b1419cdedd6240a5bf836c83f75270ba9d74b/copy.go#L49.

// successorFnWithSparseManifest defines a successor function to use with oras.Copy that will skip any expected linked content (i.e. sparse manifests)
Expand Down

0 comments on commit 2b51c31

Please sign in to comment.