Skip to content

remove redundant // +build directives - #421

Merged
klauspost merged 1 commit into
tinylib:masterfrom
alexandear-org:chore/redundant-build
Nov 17, 2025
Merged

klauspost merged 1 commit into
tinylib:masterfrom
alexandear-org:chore/redundant-build

Conversation

@alexandear

Copy link
Copy Markdown
Contributor

This PR removes redundant // +build directives. From https://pkg.go.dev/cmd/go@go1.23.0#hdr-Build_constraints:

Go versions 1.16 and earlier used a different syntax for build constraints, with a "// +build" prefix. The gofmt command will add an equivalent //go:build constraint when encountering the older syntax.

Also see https://pkg.go.dev/golang.org/x/tools@v0.39.0/go/analysis/passes/buildtag.

@klauspost
klauspost merged commit 0c38543 into tinylib:master Nov 17, 2025
4 checks passed
@alexandear
alexandear deleted the chore/redundant-build branch November 17, 2025 11:53
gannett-ggreer pushed a commit to GannettDigital/msgp that referenced this pull request Aug 25, 2026
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