build: use Go 1.24 tools pattern (#10281)

This commit is contained in:
Jakob Borg
2025-08-24 14:17:20 +02:00
committed by GitHub
parent e54f51c9c5
commit 01257e838b
21 changed files with 21 additions and 305 deletions

View File

@@ -4,8 +4,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
//go:build ignore
// +build ignore
//go:build tools
// +build tools
package main

View File

@@ -35,7 +35,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
err = exec.Command("go", "run", "golang.org/x/tools/cmd/goimports", "-w", path).Run()
err = exec.Command("go", "tool", "goimports", "-w", path).Run()
if err != nil {
log.Fatal(err)
}