fix: ignore pax header files in chart validation

Signed-off-by: chloel <chloeleeq@gmail.com>
pull/7085/head
chloel 6 years ago committed by chloel
parent 456eb7f411
commit 48704034a9

@ -126,6 +126,12 @@ func LoadArchiveFiles(in io.Reader) ([]*BufferedFile, error) {
continue
}
switch hd.Typeflag {
// We don't want to process these extension header files.
case tar.TypeXGlobalHeader, tar.TypeXHeader:
continue
}
// Archive could contain \ if generated on Windows
delimiter := "/"
if strings.ContainsRune(hd.Name, '\\') {

Loading…
Cancel
Save