Skip to content

Commit 384a632

Browse files
Allow auditing of uncompressed artifact bundles (#9297)
This is useful for debugging scenarios where artifact bundle authors want to iterate over their artifacts without having to compress them first.
1 parent 257ad9b commit 384a632

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Commands/PackageCommands/AuditBinaryArtifact.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ struct AuditBinaryArtifact: AsyncSwiftCommand {
102102
{
103103
let archiver = UniversalArchiver(fileSystem)
104104

105+
if let lastPathComponent = path.components.last,
106+
lastPathComponent.hasSuffix("artifactbundle") {
107+
return path
108+
}
109+
105110
guard let lastPathComponent = path.components.last,
106111
archiver.isFileSupported(lastPathComponent)
107112
else {

0 commit comments

Comments
 (0)