Skip to content

Fix Windows builds#156

Merged
Badoot merged 4 commits into
mainfrom
fix/windows-builds
Jun 20, 2026
Merged

Fix Windows builds#156
Badoot merged 4 commits into
mainfrom
fix/windows-builds

Conversation

@Badoot

@Badoot Badoot commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

Fix Windows builds

Details

Consolidated Interfaces: Defined CommandExecutor and WindowsProcessChecker in process.go using platform-neutral types (uintptr for Windows handles) to prevent build failures on non-Windows systems.
Unified ProcessManager: Updated the ProcessManager struct to use these shared interfaces, replacing the temporary any types and removing redundant local definitions in process_unix.go and process_windows.go.
Platform Harmonization:
Updated process_windows.go to implement the new uintptr-based interfaces.
Renamed commandWrapper to realCommandExecutor in process_unix.go for consistency across the codebase.
Updated Tests: Refactored both process_unix_test.go and process_windows_test.go to align with the new interface signatures and mock structures.

Test Results

Linux Build: go build ./internal/cli/platform/... - PASSED
Windows Cross-Build: GOOS=windows go build ./internal/cli/platform/... - PASSED
Unit Tests: go test ./internal/cli/platform/... - PASSED (all tests green)

@Badoot Badoot changed the title consolidate processmanager Fix Windows builds Jun 20, 2026
@Badoot Badoot merged commit 2bcad22 into main Jun 20, 2026
7 checks passed
@Badoot Badoot deleted the fix/windows-builds branch June 20, 2026 14:34
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.

1 participant