Skip to content

Commit

Permalink
make it runnable now, need to resolve comment
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Oct 13, 2023
1 parent d2347b4 commit 5901cf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/oci/deletableoci.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type DeletableStore struct {

storage *Storage
tagResolver *resolver.Memory
graph *graph.DeletableMemory
graph *graph.Memory
}

// NewDeletableStore returns a new DeletableStore.
Expand All @@ -78,12 +78,12 @@ func NewDeletableStoreWithContext(ctx context.Context, root string) (*DeletableS
store := &DeletableStore{
AutoSaveIndex: true,
root: rootAbs,
indexPath: filepath.Join(rootAbs, ociImageIndexFile),
indexPath: filepath.Join(rootAbs, ocispec.ImageIndexFile),
storage: storage,
tagResolver: resolver.NewMemory(),
graph: graph.NewDeletableMemory(),
graph: graph.NewMemory(),
}
if err := ensureDir(filepath.Join(rootAbs, ociBlobsDir)); err != nil {
if err := ensureDir(filepath.Join(rootAbs, ocispec.ImageBlobsDir)); err != nil {
return nil, err
}
if err := store.ensureOCILayoutFile(); err != nil {
Expand Down Expand Up @@ -338,7 +338,7 @@ func (ds *DeletableStore) writeIndexFile() error {
}

// loadIndexInDeletableMemory loads index into the memory.
func loadIndexInDeletableMemory(ctx context.Context, index *ocispec.Index, fetcher content.Fetcher, tagger content.Tagger, graph *graph.DeletableMemory) error {
func loadIndexInDeletableMemory(ctx context.Context, index *ocispec.Index, fetcher content.Fetcher, tagger content.Tagger, graph *graph.Memory) error {
for _, desc := range index.Manifests {
if err := tagger.Tag(ctx, deleteAnnotationRefName(desc), desc.Digest.String()); err != nil {
return err
Expand Down

0 comments on commit 5901cf5

Please sign in to comment.