update go ci linter run with --new-from-rev=origin/main

This commit is contained in:
Muzry 2025-07-23 08:12:27 +00:00
parent 16117eb7cd
commit 4c497bb816

View file

@ -433,7 +433,7 @@ func doLint(cmdline []string) {
} }
linter := downloadLinter(*cachedir) linter := downloadLinter(*cachedir)
lflags := []string{"run", "--config", ".golangci.yml"} lflags := []string{"run", "--config", ".golangci.yml", "--new-from-rev=origin/main"}
build.MustRunCommandWithOutput(linter, append(lflags, packages...)...) build.MustRunCommandWithOutput(linter, append(lflags, packages...)...)
fmt.Println("You have achieved perfection.") fmt.Println("You have achieved perfection.")
} }