microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
946 stars 180 forks source link

Updating windows build constraints #241

Closed helsaawy closed 2 years ago

helsaawy commented 2 years ago

191 added build guard to go-winio, but "pkg/guid" now works on both windows and linux, and is not OS dependent.

This PR is needed to allow using windows-style GUIDs on Linux code that interops with Windows.

Removed build guards from pkg/guid/guid.go. Build constraints to guid_windows and guid_nonwindows, which redundant with file names, but added for consistency.

Added missing build constraints to other files.

Added Ubuntu to test matrix, along with windows 2022.

Signed-off-by: Hamza El-Saawy hamzaelsaawy@microsoft.com