From 968e9a510bcde68b860de6f3fcbb150813471064 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 21 Jan 2022 07:57:07 -0500 Subject: [PATCH] Run codespell on code Signed-off-by: Daniel J Walsh --- manifest/common.go | 4 ++-- sif/load.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest/common.go b/manifest/common.go index 511cdcc37..20955ab7f 100644 --- a/manifest/common.go +++ b/manifest/common.go @@ -51,7 +51,7 @@ const ( // other than the ones the caller specifically allows. // expectedMIMEType is used only for diagnostics. // NOTE: The caller should do the non-heuristic validations (e.g. check for any specified format -// identification/version, or other “magic numbers”) before calling this, to cleanly reject unambigous +// identification/version, or other “magic numbers”) before calling this, to cleanly reject unambiguous // data that just isn’t what was expected, as opposed to actually ambiguous data. func validateUnambiguousManifestFormat(manifest []byte, expectedMIMEType string, allowed allowedManifestFields) error { @@ -71,7 +71,7 @@ func validateUnambiguousManifestFormat(manifest []byte, expectedMIMEType string, Manifests interface{} `json:"manifests"` }{} if err := json.Unmarshal(manifest, &detectedFields); err != nil { - // The caller was supposed to already validate version numbers, so this shold not happen; + // The caller was supposed to already validate version numbers, so this should not happen; // let’s not bother with making this error “nice”. return err } diff --git a/sif/load.go b/sif/load.go index 2dbeb7da9..ba6d875ba 100644 --- a/sif/load.go +++ b/sif/load.go @@ -142,7 +142,7 @@ func createTarFromSIFInputs(ctx context.Context, tarPath, squashFSPath string, i } // convertSIFToElements processes sifImage and creates/returns -// the relevant elements for contructing an OCI-like image: +// the relevant elements for constructing an OCI-like image: // - A path to a tar file containing a root filesystem, // - A command to run. // The returned tar file path is inside tempDir, which can be assumed to be empty @@ -166,7 +166,7 @@ func convertSIFToElements(ctx context.Context, sifImage *sif.FileImage, tempDir // So, overall, this process requires at least 2 compressed copies (SIF and squashFSPath) and 2 // uncompressed copies (extractedRootPath and tarPath) of the data, all using up space at the same time. // That's rather unsatisfactory, ideally we would be streaming the data directly from a squashfs parser - // reading from the SIF file to a tarball, for 1 compresed and 1 uncompressed copy. + // reading from the SIF file to a tarball, for 1 compressed and 1 uncompressed copy. defer os.Remove(squashFSPath) defer func() { if !succeeded {