From 2b51c310a02b838fdb749f1a39eb7eca152ae631 Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Mon, 2 Oct 2023 10:41:39 -0400 Subject: [PATCH] chore: fixes formatting with make sanity Signed-off-by: Jennifer Power --- nodes/collection/loader/manifest_to_collection.go | 1 - registryclient/orasclient/oras.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nodes/collection/loader/manifest_to_collection.go b/nodes/collection/loader/manifest_to_collection.go index a5fc32c..0473cac 100644 --- a/nodes/collection/loader/manifest_to_collection.go +++ b/nodes/collection/loader/manifest_to_collection.go @@ -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) { diff --git a/registryclient/orasclient/oras.go b/registryclient/orasclient/oras.go index de4c3c3..cf50f97 100644 --- a/registryclient/orasclient/oras.go +++ b/registryclient/orasclient/oras.go @@ -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)