Skip to content

windows: rewrite some code with golang.org/x/sys/windows - #62

Merged
thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:update_windows
Oct 19, 2026
Merged

thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:update_windows

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The API migration preserves behavior and correctly handles unsuccessful or unexpected wait results.

Review effort: Balanced
Findings: None

What changed in this PR

Replaces the custom Windows wait wrapper with golang.org/x/sys/windows.

Changes:

  • Uses windows.WaitForSingleObject with explicit result validation.
  • Simplifies console input reading error handling.
File Description
windows/​ansi_reader.go Migrates waiting logic to x/sys/windows.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@thaJeztah
thaJeztah requested a review from vvoland October 7, 2026 14:19
@thaJeztah
thaJeztah merged commit 93bf51e into moby:main Oct 19, 2026
11 checks passed
@thaJeztah
thaJeztah deleted the update_windows branch October 19, 2026 17:11
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