Skip to content

Conversation

@vastonus
Copy link

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

Signed-off-by: vastonus <vastonus@outlook.com>
@evanw
Copy link
Owner

evanw commented Oct 21, 2025

This breaks the build. Support for Go 1.13 is deliberate so people can build esbuild themselves for old OS versions.

Copy link

@Ari4ka Ari4ka left a comment

Choose a reason for hiding this comment

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


@evanw
Copy link
Owner

evanw commented Oct 30, 2025

I'm closing this PR as it breaks the build.

@evanw evanw closed this Oct 30, 2025
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