We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca6510 commit ba9d024Copy full SHA for ba9d024
Package.swift
@@ -166,6 +166,8 @@ extension Package {
166
167
extension ProcessInfo {
168
public static var useLocalDeps: Bool {
169
- ProcessInfo.processInfo.environment["SPM_USE_LOCAL_DEPS"] == "true"
+ guard let raw = ProcessInfo.processInfo.environment["SPM_USE_LOCAL_DEPS"] else { return false }
170
+ let normalized = raw.trimmingCharacters(in: .whitespacesAndNewlines).lowercased()
171
+ return normalized == "1" || normalized == "true" || normalized == "yes"
172
}
173
0 commit comments