Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: kritka sahni <[email protected]>
  • Loading branch information
kritkasahni-google committed Nov 14, 2023
1 parent ae208f4 commit 13cb939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layers/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ func (f *Factory) writeLayer(id, createdBy string, addEntries func(tw *archive.N
}
tarPath := filepath.Join(f.ArtifactsDir, escape(id)+".tar")
for {
sha, loaded := f.tarHashes.LoadOrStore(tarPath, processing)
sha, loaded := f.tarHashes.LoadOrStore(tarPath, "processin")
if loaded {
select {
case <-f.Ctx.Done():
return nil, errors.New("layer factory context canceled")
default:
return nil, nil

}
}
Expand Down

0 comments on commit 13cb939

Please sign in to comment.