Skip to content

test: run go vet first among lints - #9208

Merged
aarongable merged 1 commit into
mainfrom
vet-first
Dec 2, 2026
Merged

aarongable merged 1 commit into
mainfrom
vet-first

Conversation

@jsha

@jsha jsha commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

When running ./t.sh with a syntax error in Go code, the golangci-lint step reports it. But the format in which it's reported is not consistent with typical compilation errors in Go. Getting those errors reported by go vet makes them a lot nicer.

Note that go vet also gets run by golangci-lint, but it uses the build cache and should be pretty fast to rerun. The expensive steps in golangci-lint are all the other things.

When running `./t.sh` with a syntax error in Go code, the `golangci-lint` step
reports it. But the format in which it's reported is not consistent with typical
compilation errors in Go. Getting those errors reported by `go vet` makes them a
lot nicer.

Note that `go vet` also gets run by `golangci-lint`, but it uses the build cache
and should be pretty fast to rerun. The expensive steps in `golangci-lint` are
all the other things.
@jsha
jsha marked this pull request as ready for review December 2, 2026 17:40
@jsha
jsha requested a review from a team as a code owner December 2, 2026 17:40
@jsha
jsha requested a review from ezekiel December 2, 2026 17:40
@aarongable
aarongable merged commit f6b4be0 into main Dec 2, 2026
19 checks passed
@aarongable
aarongable deleted the vet-first branch December 2, 2026 21:03
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.

3 participants