Skip to content

Commit 10b890f

Browse files
authored
Add ignore for tar directories (#3076)
1 parent e485252 commit 10b890f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/weights/pull.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ func (m *Manager) pullLayer(
231231
if err != nil {
232232
return fmt.Errorf("read layer %s: %w", layerDigest, err)
233233
}
234+
if hdr.Typeflag == tar.TypeDir {
235+
continue
236+
}
234237
if hdr.Typeflag != tar.TypeReg {
235238
// Spec §1.3 says producers MUST emit only regular
236239
// files. A non-regular entry indicates a producer bug

0 commit comments

Comments
 (0)