Skip to content

refactor: remove obsolete // +build tag#738

Merged
dguido merged 2 commits intocrytic:masterfrom
zjumathcode:master
Jan 20, 2026
Merged

refactor: remove obsolete // +build tag#738
dguido merged 2 commits intocrytic:masterfrom
zjumathcode:master

Conversation

@zjumathcode
Copy link
Copy Markdown
Contributor

@zjumathcode zjumathcode commented Dec 1, 2025

Description

From Go 1.17, the preferred syntax for build constraints is //go:build,
which replaces the old // +build form. The old style is now considered
deprecated but still supported for backward compatibility.

This change removes the obsolete // +build xxx line, keeping only the
modern //go:build xxx directive.

More info: golang/go#41184 and https://go.dev/doc/go1.17#build-lines

Design Doc / Proposal:
https://go.dev/design/draft-gobuild

Related Issues:

Type of Change:

  • Bug Fix
  • New Feature
  • Refactoring
  • Documentation
  • Performance Improvement
  • Tests
  • Other (please describe):

Testing

Additional Context

Outstanding TODOs

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 1, 2025

CLA assistant check
All committers have signed the CLA.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown
Member

@dguido dguido left a comment

Choose a reason for hiding this comment

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

LGTM - correct removal of obsolete // +build syntax. The //go:build directive is already present and takes precedence.

@dguido dguido merged commit 88b4099 into crytic:master Jan 20, 2026
7 of 8 checks passed
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