We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1334e97 commit a783f11Copy full SHA for a783f11
Sources/PackageLoading/PackageDescription4Loader.swift
@@ -174,10 +174,6 @@ enum ManifestJSONParser {
174
175
private static func parseResources(_ json: JSON) throws -> [TargetDescription.Resource] {
176
guard let resourcesJSON = try? json.getArray("resources") else { return [] }
177
- if resourcesJSON.isEmpty {
178
- throw ManifestParseError.runtimeManifestErrors(["resources cannot be an empty array; provide at least one value or remove it"])
179
- }
180
-
181
return try resourcesJSON.map { json in
182
let rawRule = try json.get(String.self, forKey: "rule")
183
let rule = TargetDescription.Resource.Rule(rawValue: rawRule)!
0 commit comments