From a0c67c94c46a5fb6071ba4ba4cfdac6a0194f745 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 2 Oct 2025 13:07:56 -0700 Subject: [PATCH] Don't fail when QNX 7 SDP is present on the system and Rosetta is not installed Auxiliary platform lookup is intended to be failable; one of the three calls to cachedQNXSDPInstallations was missing a `try?` Closes #836 --- Sources/SWBQNXPlatform/Plugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SWBQNXPlatform/Plugin.swift b/Sources/SWBQNXPlatform/Plugin.swift index dda0cc25..37b9bde2 100644 --- a/Sources/SWBQNXPlatform/Plugin.swift +++ b/Sources/SWBQNXPlatform/Plugin.swift @@ -45,7 +45,7 @@ struct QNXEnvironmentExtension: EnvironmentExtension { let plugin: QNXPlugin func additionalEnvironmentVariables(context: any EnvironmentExtensionAdditionalEnvironmentVariablesContext) async throws -> [String : String] { - if let latest = try await plugin.cachedQNXSDPInstallations(host: context.hostOperatingSystem).first { + if let latest = try? await plugin.cachedQNXSDPInstallations(host: context.hostOperatingSystem).first { return .init(latest.environment) } return [:]