Files
bun.sh/test/regression
Claude Bot 591b39f5ff fix(install): remove overly strict Windows bin linking assertion
Fixes #23414

The code was asserting that all relative paths from .bin to package
binaries must start with "..\\" on Windows. This assumption breaks in
edge cases where the relative path has a different structure.

This commit:
- Replaces the assertion with a conditional check
- Handles both paths that start with "..\\" and those that don't
- Adds a regression test for issue #23414

The fix gracefully handles edge cases while maintaining the expected
behavior for the common case where binaries are in subdirectories
of node_modules.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 22:13:03 +00:00
..