Skip to content

Commit

Permalink
deprecate TypeRegA
Browse files Browse the repository at this point in the history
Signed-off-by: franknstyle <[email protected]>
  • Loading branch information
franknstyle committed Mar 29, 2023
1 parent 1c88db1 commit f0fbf79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tarball/tarball.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func DecodeTarball(reader io.Reader, baseDir string) error {
if err := os.MkdirAll(filepath.Join(baseDir, name), os.FileMode(header.Mode)); err != nil {
return errors.Wrap(err, "error decoding tarball for result (mkdir)")
}
case tar.TypeReg, tar.TypeRegA:
case tar.TypeReg:
filePath := filepath.Join(baseDir, name)
// Directory should come first, but some tarballes are malformed
if err := os.MkdirAll(filepath.Dir(filePath), 0755); err != nil {
Expand Down

0 comments on commit f0fbf79

Please sign in to comment.