diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index 5686dd29..14999bc6 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -664,6 +664,7 @@ func extractTarToDirectory(tarData []byte, targetDir string) error { // Skip the top-level directory itself continue } + // Skip empty paths after stripping if cleanName == "" { continue @@ -682,6 +683,7 @@ func extractTarToDirectory(tarData []byte, targetDir string) error { if err := os.MkdirAll(filepath.Dir(targetPath), 0o755); err != nil { return fmt.Errorf("failed to create parent directories for %s: %w", targetPath, err) } + // Create file outFile, err := os.Create(targetPath) if err != nil {