Skip to content

Fix the case where the symlink is in the install directory - #6562

Merged
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:port-fix
Sep 28, 2026
Merged

JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:port-fix

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

📖 Description

Follow up to #6308.

Fixes the case where the symlink is in the install directory. The computed hard link path would just be the symlink path again. Also probes the hard link via functions that won't follow any symlink that might be there instead.

🔍 Validation

Tests that failed on my machine now pass.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS
JohnMcPMS requested a review from a team as a code owner September 24, 2026 00:41
@JohnMcPMS

Copy link
Copy Markdown
Member Author

Kaleb Luedtke (@Trenly) I tried to assign you as a reviewer, but GH is not being my friend today...

@Trenly Kaleb Luedtke (Trenly) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!!I I wasn't aware the symlink could ever end up in the installdir

@ranm-msft ranm-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small and clear. Handling the case where the symlink already lives in the install directory is the right fix, and the change is contained enough to be easy to reason about.

@JohnMcPMS
JohnMcPMS merged commit 8d070bb into microsoft:master Sep 28, 2026
9 checks passed
@JohnMcPMS
JohnMcPMS deleted the port-fix branch September 28, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants