Skip to content

Commit 2f3facb

Browse files
authored
Certificates: address soundness script errors (#6255)
With these changes `./Utilities/soundness.sh` can successfully pass.
1 parent 1750a26 commit 2f3facb

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

Utilities/Certificates/empty.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift open source project
4+
//
5+
// Copyright (c) YEARS Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See http://swift.org/LICENSE.txt for license information
9+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//

Utilities/Certificates/generate.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
#!/bin/sh
1+
#!/bin/bash
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift open source project
5+
##
6+
## Copyright (c) YEARS Apple Inc. and the Swift project authors
7+
## Licensed under Apache License v2.0 with Runtime Library Exception
8+
##
9+
## See http://swift.org/LICENSE.txt for license information
10+
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
##
12+
##===----------------------------------------------------------------------===##
213

314
swift build
415
cp .build/arm64-apple-macosx/debug/Certificates.build/DerivedSources/embedded_resources.swift ../../Sources/PackageSigning/

Utilities/soundness.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ for language in swift-or-c bash python; do
6464
matching_files=( -name '*' )
6565
case "$language" in
6666
swift-or-c)
67-
exceptions=( -name "Package.swift" -o -path "./Examples/*" -o -path "./Fixtures/*" -o -path "./IntegrationTests/*" -o -path "./Tests/ExtraTests/*" -o -path "./Tests/PackageLoadingTests/Inputs/*" )
67+
exceptions=(
68+
-name "Package.swift"
69+
-o -path "./Sources/PackageSigning/embedded_resources.swift"
70+
-o -path "./Examples/*"
71+
-o -path "./Fixtures/*"
72+
-o -path "./IntegrationTests/*"
73+
-o -path "./Tests/ExtraTests/*"
74+
-o -path "./Tests/PackageLoadingTests/Inputs/*"
75+
)
6876
matching_files=( -name '*.swift' -o -name '*.c' -o -name '*.h' )
6977
cat > "$tmp" <<"EOF"
7078
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)