Skip to content

Commit ba9d024

Browse files
committed
Update Package.swift
1 parent dca6510 commit ba9d024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ extension Package {
166166

167167
extension ProcessInfo {
168168
public static var useLocalDeps: Bool {
169-
ProcessInfo.processInfo.environment["SPM_USE_LOCAL_DEPS"] == "true"
169+
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"
170172
}
171173
}

0 commit comments

Comments
 (0)