Proposals Unofficial Go proposal tracker

Add GOEXPERIMENT=vetfiles to try go.vet analyzers in go test

#82690 · low impact · Implemented ·

Proposal 82464 would let go test run extra static analyzers listed in a go.vet file, alongside the built-in vet checks. Before that design is settled, developers need a way to try it and give feedback without the Go team committing to new interfaces or behavior.

This proposal adds a GOEXPERIMENT=vetfiles setting that the go command reads at run time. When it is set, go test enables the prototype support for analyzers specified in go.vet files. The experiment is off by default:

GOEXPERIMENT=vetfiles go test ./...

If #82464 is accepted, the behavior becomes the default and the flag is removed. If it is rejected, the experiment and all code behind it are deleted.

Proposal
#82690 by adonovan
Status
Implemented on Nov 19, 2026
Impact
low