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 3a7490b commit 9baf376Copy full SHA for 9baf376
Sources/ScriptingCore/Models.swift
@@ -20,7 +20,7 @@ public struct PackageModel: Codable {
20
let path: AbsolutePath?
21
/// The URL of a remote package.
22
let url: Foundation.URL?
23
- /// The user-defined name for a local package.
+ /// The user-defined name for a package.
24
private let _name: String?
25
26
/// The resolved name of the package.
@@ -34,7 +34,7 @@ public struct PackageModel: Codable {
34
} else if let url = url {
35
name = url.pathComponents.last!.spm_dropGitSuffix()
36
} else {
37
- fatalError()
+ preconditionFailure("Invalid package model")
38
}
39
return name
40
0 commit comments