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 d6e7e68 commit 3555391Copy full SHA for 3555391
Sources/SwiftlyCore/Platform.swift
@@ -454,6 +454,16 @@ extension Platform {
454
return cmdAbsolute
455
}
456
457
+ // If we're running inside an xctest then we don't have a location for this swiftly.
458
+ guard let cmdAbsolute,
459
+ !(
460
+ (cmdAbsolute.string.hasSuffix("xctest") || cmdAbsolute.string.hasSuffix("swiftpm-testing-helper"))
461
+ && CommandLine.arguments.contains { $0.contains("InstallTests") }
462
+ )
463
+ else {
464
+ return nil
465
+ }
466
+
467
return try await fs.exists(atPath: swiftlyHomeBin) ? swiftlyHomeBin : nil
468
469
0 commit comments