Skip to content

archive: rewrite chtimesAt using windows.Openat - #88

Open
thaJeztah wants to merge 5 commits into
moby:mainfrom
thaJeztah:fix_windows_alt
Open

archive: rewrite chtimesAt using windows.Openat#88
thaJeztah wants to merge 5 commits into
moby:mainfrom
thaJeztah:fix_windows_alt

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

@thaJeztah
thaJeztah force-pushed the fix_windows_alt branch 2 times, most recently from 29755be to adbe9a0 Compare July 28, 2026 11:16
@codecov-commenter

codecov-commenter commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.63126% with 842 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.17%. Comparing base (216738e) to head (7ba74cc).
⚠️ Report is 91 commits behind head on main.

Files with missing lines Patch % Lines
internal/syscall/windows/zsyscall_windows.go 6.88% 332 Missing and 6 partials ⚠️
internal/syscall/windows/at_windows.go 24.03% 299 Missing and 17 partials ⚠️
internal/syscall/windows/syscall_windows.go 0.00% 81 Missing ⚠️
internal/syscall/windows/security_windows.go 0.00% 47 Missing ⚠️
internal/syscall/windows/version_windows.go 18.00% 40 Missing and 1 partial ⚠️
internal/syscall/windows/reparse_windows.go 0.00% 8 Missing ⚠️
internal/syscall/windows/nonblocking_windows.go 0.00% 5 Missing ⚠️
internal/syscall/windows/types_windows.go 63.63% 2 Missing and 2 partials ⚠️
internal/syscall/windows/string_windows.go 80.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #88       +/-   ##
===========================================
- Coverage   65.81%   49.17%   -16.64%     
===========================================
  Files          42       53       +11     
  Lines        2039     3223     +1184     
===========================================
+ Hits         1342     1585      +243     
- Misses        519     1410      +891     
- Partials      178      228       +50     

☔ 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 force-pushed the fix_windows_alt branch 10 times, most recently from 846d744 to 89bebbb Compare July 28, 2026 14:09
This forks the Openat implementation from Go's `internal/syscall/windows`
package at go1.26.5;
https://github.com/golang/go/tree/go1.26.0/src/internal/syscall/windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Code is unmodified, with the exception of "internal/oserror", which
is replaced with a `os.ErrInvalid` (which uses the same error under
the hood) and a testenv.Executable helper.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah force-pushed the fix_windows_alt branch 2 times, most recently from 85ec686 to 41edda1 Compare July 30, 2026 14:14
@thaJeztah thaJeztah changed the title archive: fix creation time updates on Windows (alternative) rewrite chtimesAt using windows.Openat Jul 30, 2026
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah changed the title rewrite chtimesAt using windows.Openat archive: rewrite chtimesAt using windows.Openat Jul 30, 2026
@thaJeztah
thaJeztah marked this pull request as ready for review July 30, 2026 16:03
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.

2 participants