From da969dda5e8660b8b4a2c006102b9b2b8e1e5d93 Mon Sep 17 00:00:00 2001 From: Daniel Grumberg Date: Wed, 29 Oct 2025 15:03:10 +0000 Subject: [PATCH] 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 384a632e0335fa045d69e4e1032b8ac3d476f91a) --- Sources/Commands/PackageCommands/AuditBinaryArtifact.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Commands/PackageCommands/AuditBinaryArtifact.swift b/Sources/Commands/PackageCommands/AuditBinaryArtifact.swift index 0b5119fe733..86efaaf6bf9 100644 --- a/Sources/Commands/PackageCommands/AuditBinaryArtifact.swift +++ b/Sources/Commands/PackageCommands/AuditBinaryArtifact.swift @@ -99,6 +99,11 @@ struct AuditBinaryArtifact: AsyncSwiftCommand { { let archiver = UniversalArchiver(fileSystem) + if let lastPathComponent = path.components.last, + lastPathComponent.hasSuffix("artifactbundle") { + return path + } + guard let lastPathComponent = path.components.last, archiver.isFileSupported(lastPathComponent) else {