diff --git a/cmd/geth/logging_test.go b/cmd/geth/logging_test.go
index 4293a860ec33..37fffecc307f 100644
--- a/cmd/geth/logging_test.go
+++ b/cmd/geth/logging_test.go
@@ -1,5 +1,3 @@
-//go:build integrationtests
-
// Copyright 2023 The go-ethereum Authors
// This file is part of go-ethereum.
//
@@ -16,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
+//go:build integrationtests
+
package main
import (
diff --git a/cmd/geth/logtestcmd_active.go b/cmd/geth/logtestcmd_active.go
index f2a2c5ded54a..f9bbc3d4ec33 100644
--- a/cmd/geth/logtestcmd_active.go
+++ b/cmd/geth/logtestcmd_active.go
@@ -1,5 +1,3 @@
-//go:build integrationtests
-
// Copyright 2023 The go-ethereum Authors
// This file is part of go-ethereum.
//
@@ -16,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
+//go:build integrationtests
+
package main
import (
diff --git a/cmd/geth/logtestcmd_inactive.go b/cmd/geth/logtestcmd_inactive.go
index 691ab5bcd8ed..8dda1c47e436 100644
--- a/cmd/geth/logtestcmd_inactive.go
+++ b/cmd/geth/logtestcmd_inactive.go
@@ -1,5 +1,3 @@
-//go:build !integrationtests
-
// Copyright 2023 The go-ethereum Authors
// This file is part of go-ethereum.
//
@@ -16,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
+//go:build !integrationtests
+
package main
import "github.com/urfave/cli/v2"