Skip to content

Commit 2e65332

Browse files
authored
refactor: remove obsolete // +build tag (#2774)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> 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: wyrapeseed <[email protected]>
1 parent 712baa6 commit 2e65332

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

scripts/run-evm-nodes.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build run_evm
2-
// +build run_evm
32

43
package main
54

scripts/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build run
2-
// +build run
32

43
package main
54

scripts/test_cover.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build cover
2-
// +build cover
32

43
package main
54

scripts/tidy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build tidy
2-
// +build tidy
32

43
package main
54

0 commit comments

Comments
 (0)