Skip to content

Commit

Permalink
chore: remove redundant ingest folder
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
  • Loading branch information
blakepettersson committed Oct 27, 2024
1 parent a9f98ab commit 2abf6db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions util/oci/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"math"
"net/http"
"os"
"path"
"path/filepath"
"slices"
"strings"
Expand Down Expand Up @@ -390,6 +391,12 @@ func saveCompressedImageToPath(ctx context.Context, digest string, repo oras.Rea
return err
}

// Remove redundant ingest folder; this is an artifact from the oras.Copy call above
err = os.RemoveAll(path.Join(tempDir, "ingest"))
if err != nil {
return err
}

// Save contents to tar file
return createTarFile(tempDir, cachedPath)
}
Expand Down

0 comments on commit 2abf6db

Please sign in to comment.