fix: ignore pax header files in chart validation

Signed-off-by: chloel <chloeleeq@gmail.com>
(cherry picked from commit 48704034a9)
pull/7423/head
chloel 5 years ago committed by Matt Farina
parent 0046554040
commit 767c9aeace
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -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