Skip to content

Commit 5c70711

Browse files
committed
[Infra] Exclude pods that aren't releasing in GHAMatrixSpecCollector
1 parent 33f8419 commit 5c70711

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ReleaseTooling/Sources/ManifestParser/GHAMatrixSpecCollector.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ struct SDKPodspec: Codable {
3131
struct GHAMatrixSpecCollector {
3232
var SDKRepoURL: URL
3333
var outputSpecFileURL: URL
34-
var excludedSDKs: [String] = []
3534

3635
func getPodsInManifest(_ manifest: Manifest) -> [String: SDKPodspec] {
3736
var podsMap: [String: SDKPodspec] = [:]
38-
for pod in manifest.pods {
37+
for pod in manifest.pods.filter({ $0.releasing }) {
3938
podsMap[pod.name] = SDKPodspec(podspec: pod.name, allowWarnings: pod.allowWarnings)
4039
}
4140
return podsMap

ReleaseTooling/Sources/ManifestParser/main.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ struct ManifestParser: ParsableCommand {
6969
try parsePodNames(FirebaseManifest.shared)
7070
case .forGHAMatrixGeneration:
7171
guard let sdkRepoURL = SDKRepoURL else {
72-
throw fatalError(
73-
"--sdk-repo-url should be specified when --for-gha-matrix-generation is on."
74-
)
72+
fatalError("--sdk-repo-url should be specified when --for-gha-matrix-generation is on.")
7573
}
7674
let specCollector = GHAMatrixSpecCollector(
7775
SDKRepoURL: sdkRepoURL,

0 commit comments

Comments
 (0)