Fix Windows COPY --parents with skip protected system files by rzlink · Pull Request #6369 · moby/buildkit (original) (raw)

tonistiigi

tonistiigi

@rzlink

Fixes copying from Windows container mount roots by detecting and skipping protected system files ('System Volume Information' and 'WcSandboxState') that cause 'Access is denied' errors.

Changes:

The fix is Windows-specific and only activates when copying from mount roots where protected files exist. All other copy operations use the standard path.

Issue: Resolves moby#6635 [v0.26] WCOW: Fix COPY --parents tests Signed-off-by: Dawei Wei wei.dawei.cn@gmail.com

jsternberg

@rzlink rzlink deleted the fix-windows-copy-with-protected-files branch

December 19, 2025 17:49

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})