Skip to content

Conversation

@ssagarverma
Copy link

@ssagarverma ssagarverma commented Nov 10, 2025

Description

  • Replaced all deprecated // +build directives with the modern //go:build form introduced in Go 1.17. This modernizes build constraints to align with the latest Go toolchain and removes obsolete syntax flagged by go vet linter.

  • No runtime or functional behavior changes.

⚠️ Note: This change drops compatibility with Go versions earlier than 1.17, as they do not support the //go:build syntax.

Related Issue

This change is required to fix lint issues that appeared during CI checks in #780 .

How Has This Been Tested?

golangci-lint cache clean && golangci-lint run ./... succeeded with zero issues after migrating golangci-lint config to the latest version in local (Migration guide).

golangci-lint CI check would still fail until the above said migration is not complete.

Local testing steps:

  1. Comment out exclude_godoc_examples: false line in .golangci.yml file.
  2. Run golangci-lint migrate command to migrate golangci-lint config to the latest supported version.
  3. Run golangci-lint cache clean && golangci-lint run ./...

- Replaced all deprecated `// +build` directives with the modern `//go:build` form
introduced in Go 1.17. This modernizes build constraints to align with the latest Go
toolchain and removes obsolete syntax flagged by go vet linter.

- No runtime or functional behavior changes.

⚠️ Note: This change drops compatibility with Go versions earlier than 1.17,
as they do not support the `//go:build` syntax.
@ssagarverma ssagarverma requested review from a team as code owners November 10, 2025 14: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.

1 participant