Skip to content

createImpliedDirectories: fix directory detection and path handling - #44

Merged
vvoland merged 1 commit into
moby:mainfrom
thaJeztah:create_implied
Jul 16, 2026
Merged

createImpliedDirectories: fix directory detection and path handling#44
vvoland merged 1 commit into
moby:mainfrom
thaJeztah:create_implied

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

The code used os.PathSeparator to detect if the Tar-header was not for a directory, but Tar headers use POSIX (forward-slashes), so this would fail on Windows.

@codecov-commenter

codecov-commenter commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.25%. Comparing base (2cd730e) to head (e45dc89).
⚠️ Report is 45 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
- Coverage   66.35%   65.25%   -1.10%     
==========================================
  Files          42       42              
  Lines        2027     2035       +8     
==========================================
- Hits         1345     1328      -17     
- Misses        497      533      +36     
+ Partials      185      174      -11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztah
thaJeztah marked this pull request as draft July 15, 2026 15:00
The code used os.PathSeparator to detect if the Tar-header was not for
a directory, but Tar headers use POSIX (forward-slashes), so this would
fail on Windows.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah marked this pull request as ready for review July 15, 2026 15:21
@thaJeztah
thaJeztah requested a review from vvoland July 15, 2026 15:44
@vvoland
vvoland merged commit b277498 into moby:main Jul 16, 2026
12 checks passed
@thaJeztah
thaJeztah deleted the create_implied branch July 16, 2026 13:02
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