Skip to content

build: add //go:build directives alongside // +build#313

Open
dlevy-msft-sql wants to merge 1 commit intomicrosoft:mainfrom
dlevy-msft-sql:fix/build-constraints
Open

build: add //go:build directives alongside // +build#313
dlevy-msft-sql wants to merge 1 commit intomicrosoft:mainfrom
dlevy-msft-sql:fix/build-constraints

Conversation

@dlevy-msft-sql
Copy link

@dlevy-msft-sql dlevy-msft-sql commented Jan 31, 2026

Adds modern //go:build directives alongside existing // +build constraints in the winsspi package for Go 1.17+ compatibility.

Changes

  • integratedauth/winsspi/provider.go: Add //go:build windows
  • integratedauth/winsspi/winsspi.go: Add //go:build windows

This improves compatibility with modern Go tooling while maintaining backward compatibility. Also includes minor formatting improvements (struct field alignment, trailing whitespace removal) applied by go fmt.


Split from #306 for easier review

Go 1.17+ prefers //go:build syntax. Adding it alongside the legacy
// +build directive ensures compatibility with both old and new Go versions.
The go fmt tool will eventually update these, but having both ensures
the build constraints work correctly across all supported Go versions.
@dlevy-msft-sql dlevy-msft-sql self-assigned this Jan 31, 2026
@dlevy-msft-sql dlevy-msft-sql added the Size: S Small issue (less than one week effort, less than 250 lines of code) label Jan 31, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds modern //go:build directives alongside existing // +build constraints in the winsspi package to improve compatibility with Go 1.17+ tooling. The changes follow the standard pattern established throughout the codebase and include minor code quality improvements.

Changes:

  • Add //go:build windows directives to two winsspi package files
  • Align struct field formatting in winsspi.go
  • Remove trailing whitespace

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
integratedauth/winsspi/winsspi.go Add //go:build windows directive, align struct fields, remove trailing whitespace
integratedauth/winsspi/provider.go Add //go:build windows directive

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.45%. Comparing base (c16a19e) to head (7b403f5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #313      +/-   ##
==========================================
+ Coverage   75.36%   75.45%   +0.09%     
==========================================
  Files          34       34              
  Lines        6597     6597              
==========================================
+ Hits         4972     4978       +6     
+ Misses       1337     1333       -4     
+ Partials      288      286       -2     

☔ View full report in Codecov by Sentry.
📢 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.

@dlevy-msft-sql dlevy-msft-sql added in-review Priority: 0 Breaking things; must fix immediately Priority: 1 High priority/impact Size: Tiny Less than 10 lines of code and removed Priority: 0 Breaking things; must fix immediately Size: S Small issue (less than one week effort, less than 250 lines of code) in-review labels Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 1 High priority/impact Size: Tiny Less than 10 lines of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants