Skip to content

Conversation

@tucksaun
Copy link
Member

Symlink evaluation is broken on Windows under certain circumstances (e.g., when using junctions - mounting a drive under a directory). See golang/go#40180 for more information.
This can break PHP discovery if the PHP installation is reachable using these kinds of links

This PR borrows code from golangci-lint, which encounters the same kind of issue.

Fixes #16
Superseeds #21

@tucksaun tucksaun requested a review from fabpot November 29, 2025 12:01
@fabpot
Copy link
Contributor

fabpot commented Nov 29, 2025

Thank you @tucksaun.

@fabpot fabpot merged commit 25c6dba into symfony-cli:main Nov 29, 2025
10 checks passed
@tucksaun tucksaun deleted the fix/fix-symlink-eval-windows branch November 29, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

PHP discovery on Windows uses current drive instead of system drive

2 participants