Skip to content

Updating windows build constraints#241

Merged
helsaawy merged 1 commit intomicrosoft:masterfrom
helsaawy:he/buildconstr
Mar 29, 2022
Merged

Updating windows build constraints#241
helsaawy merged 1 commit intomicrosoft:masterfrom
helsaawy:he/buildconstr

Conversation

@helsaawy
Copy link
Copy Markdown
Contributor

#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

pkg/guid is not windows specific, as it can run on Linux.
Build constraints on guid_windows and guid_nonwindows are redundant with
file names, but added for consistency.

Added missing build constraints.

Added Ubuntu to test matrix, along with windows 2022.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy requested a review from a team as a code owner March 29, 2022 16:45
Copy link
Copy Markdown

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

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

LGTM, I don't see any issue doing this

@helsaawy helsaawy merged commit 94764bf into microsoft:master Mar 29, 2022
@helsaawy helsaawy deleted the he/buildconstr branch June 20, 2022 15:20
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