mac: show local gateway path when overridden

This commit is contained in:
Peter Steinberger
2025-12-09 18:46:31 +00:00
parent 2918e00d33
commit 577b0dfe1d

View File

@@ -110,12 +110,15 @@ enum GatewayEnvironment {
let gatewayLabel = gatewayBin != nil ? "global" : "local" let gatewayLabel = gatewayBin != nil ? "global" : "local"
let gatewayVersionText = installed?.description ?? "unknown" let gatewayVersionText = installed?.description ?? "unknown"
let localPathHint = gatewayBin == nil && projectEntrypoint != nil
? " (local: \(projectEntrypoint))"
: ""
return GatewayEnvironmentStatus( return GatewayEnvironmentStatus(
kind: .ok, kind: .ok,
nodeVersion: runtime.version.description, nodeVersion: runtime.version.description,
gatewayVersion: gatewayVersionText, gatewayVersion: gatewayVersionText,
requiredGateway: expected?.description, requiredGateway: expected?.description,
message: "Node \(runtime.version.description); gateway \(gatewayVersionText) (\(gatewayLabel))") message: "Node \(runtime.version.description); gateway \(gatewayVersionText) (\(gatewayLabel))\(localPathHint)")
} }
} }