Skip to content

flowey: skip copy when source and destination paths are identical#3013

Merged
benhillis merged 1 commit intomicrosoft:mainfrom
benhillis:avoid_copy_to_self
Mar 17, 2026
Merged

flowey: skip copy when source and destination paths are identical#3013
benhillis merged 1 commit intomicrosoft:mainfrom
benhillis:avoid_copy_to_self

Conversation

@benhillis
Copy link
Copy Markdown
Member

On Windows, the closed-source NuGet package installs files directly into the magic path (oss/.packages/underhill-deps-private/{arch}/), so the copy step was trying to copy files onto themselves, causing OS error 32.

@benhillis benhillis requested a review from a team as a code owner March 16, 2026 20:43
Copilot AI review requested due to automatic review settings March 16, 2026 20:43
smalis-msft
smalis-msft previously approved these changes Mar 16, 2026
Copy link
Copy Markdown
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

Fixes a Windows Flowey failure where the linux test kernel/initrd “magic path” initialization step could end up attempting to copy a file onto itself (triggering OS error 32) when dependencies are already installed directly into the destination directory.

Changes:

  • Avoid copying initrd when the resolved source path equals the computed destination path.
  • Avoid copying the kernel (vmlinux/Image) when the resolved source path equals the computed destination path.

You can also share your feedback on Copilot code review. Take the survey.

On Windows, the closed-source NuGet package installs files directly into
the magic path (oss/.packages/underhill-deps-private/{arch}/), so the
copy step was trying to copy files onto themselves, causing OS error 32.
@benhillis benhillis enabled auto-merge (squash) March 16, 2026 21:23
@github-actions
Copy link
Copy Markdown

@benhillis benhillis merged commit 2560b16 into microsoft:main Mar 17, 2026
80 of 82 checks passed
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