Skip to content

Conversation

@ssagarverma
Copy link
Contributor

@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
@ritikrajdev
Copy link

The CI lint is failing for this one. Can you please address that as well.

@ssagarverma
Copy link
Contributor Author

The CI lint is failing for this one. Can you please address that as well.

@ritikrajdev I've added golangci-lint migrate changes and the CI checks are now passing, plz check.

Copy link

@ritikrajdev ritikrajdev left a comment

Choose a reason for hiding this comment

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

LGTM

@ssagarverma ssagarverma merged commit 0dfa446 into master Nov 25, 2025
24 of 25 checks passed
@ssagarverma ssagarverma deleted the ssagarverma/fix-lint-issues branch November 25, 2025 06:19
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.

2 participants