Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

tsgo bin path should begin with file protocol in windows

Related Links

https://github.com/lynx-family/lynx-stack/actions/runs/17573565390/job/49914064104?pr=1685

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Copilot Copilot AI review requested due to automatic review settings September 9, 2025 09:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a Windows-specific issue where dynamic imports of absolute file paths fail because Windows requires proper file:// URL protocol formatting. The fix ensures cross-platform compatibility for the tsgo binary path resolution.

  • Adds proper Windows file path handling using pathToFileURL from Node.js
  • Conditionally formats file paths as file:// URLs on Windows while preserving existing behavior on other platforms

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

fi3ework
fi3ework previously approved these changes Sep 9, 2025
@Timeless0911 Timeless0911 enabled auto-merge (squash) September 9, 2025 09:21
@Timeless0911 Timeless0911 merged commit e190d8d into main Sep 9, 2025
24 checks passed
@Timeless0911 Timeless0911 deleted the fix/windows branch September 9, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants