Skip to content

Commit 1f3abb0

Browse files
[🍒]Allow auditing of uncompressed artifact bundles (#9297) (#9360)
- **Explanation**: Improves the usability of the `experimental-audit-binary-artifact` command. - **Scope**: The cherry picked change is entirely scoped to the `experimental-audit-binary-artifact` command and has no changes in other parts of the Swift PM code. This command is also Linux only so it doesn't affect the other platforms. - **Issues**: This came up when trying to use the `experimental-audit-binary-artifact` in `swift-temporal-sdk`. - **Original PRs**: #9297 - **Risk**: Low since it only touches the experimental command - **Testing**: I just tested this on the latest nightly main toolchain and it works now. - **Reviewers**: @owenv @jakepetroules @FranzBusch Co-authored-by: Daniel Grumberg <[email protected]>
1 parent 3e78ff8 commit 1f3abb0

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)