Skip to content

Commit da969dd

Browse files
daniel-grumbergFranzBusch
authored andcommitted
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. (cherry picked from commit 384a632)
1 parent fafd153 commit da969dd

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
@@ -99,6 +99,11 @@ struct AuditBinaryArtifact: AsyncSwiftCommand {
9999
{
100100
let archiver = UniversalArchiver(fileSystem)
101101

102+
if let lastPathComponent = path.components.last,
103+
lastPathComponent.hasSuffix("artifactbundle") {
104+
return path
105+
}
106+
102107
guard let lastPathComponent = path.components.last,
103108
archiver.isFileSupported(lastPathComponent)
104109
else {

0 commit comments

Comments
 (0)