Skip to content

Commit

Permalink
Fix archive extraction (chainguard-dev#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Gibler authored May 10, 2024
1 parent 1b18970 commit 94e0a41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/action/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ func extractArchiveToTempDir(ctx context.Context, path string) (string, error) {
return "", fmt.Errorf("failed to create temp dir: %w", err)
}

extract := extractionMethod(filepath.Ext(path))
ext := getExt(path)
extract := extractionMethod(ext)
if extract == nil {
return "", fmt.Errorf("unsupported archive type: %s", path)
}
Expand Down

0 comments on commit 94e0a41

Please sign in to comment.