fix(server): keep provider CLIs available in the macOS service #8173
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/8173/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/cloud/bootService.ts line 131Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -127,3 +127,5 @@127127 ` </array>`,128128 ` <key>EnvironmentVariables</key>`,129129 ` <dict>`,130+ ` <key>PATH</key>`,131+ ` <string>${escapeXmlText(options.environmentPath)}</string>`,apps/server/src/cloud/bootService.ts line 296Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -287,4 +290,7 @@287290 return {288291 kind: "launchd",289292 unitPath,290- render: (plan) => renderBootServicePlist(plan, { homeDir: input.homeDir }),293+ render: (plan) =>294+ renderBootServicePlist(plan, {295+ homeDir: input.homeDir,296+ environmentPath: input.environmentPath,
- apps/server/src/cloud/bootService.ts line 471OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -441,9 +454,18 @@441454 const platform = yield* HostProcessPlatform;442455 const uid = yield* HostProcessUserId;443456 const homeDir = yield* Config.string("HOME").pipe(Config.withDefault(""));457+ const installerPath = yield* Config.string("PATH").pipe(Config.withDefault(""));444458 const fs = yield* FileSystem.FileSystem;445459 const path = yield* Path.Path;446460 const runner = yield* ProcessRunner.ProcessRunner;447461 const host = input.host ?? { execPath: hostExecPath };448-449- const detectedManager = selectBootServiceManager({ platform, homeDir, uid, path });462+ const xmlSafeInstallerPath = installerPath463+ .split(":")464+ .filter((directory) =>465+ Array.from(directory).every((character) => {466+ const code = character.charCodeAt(0);467+ return code >= 0x20 || code === 0x09 || code === 0x0a || code === 0x0d;468+ }),469+ )470+ .join(":");471+ const environmentPath =
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
a5b3eee7-5eb4-47c6-a3d1-84a6a25d4303You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share