Skip to content

all: run 'go vet std' during run.bash, disable vetall builder #31916

Closed
@rsc

Description

@rsc

What the vetall builder does - run go vet on std and tell us about problems - is valuable, but hiding that in a builder makes it too easy to be surprised when it breaks. It would be better if we ran 'go vet' during run.bash (maybe during 'go test', maybe separately), so that the problems are surfaced before you get all the way to sending CLs out. Doing this would require first cleaning up std to be vet-safe.

I intend to chip away at this.

Update: Based on discussion below, my concrete suggestion is:

  • Fix all the vet issues in GOROOT so there are no whitelists left.
  • Make 'go test' on packages in GOROOT run all vet checks, not just the usual subset.
    This will help people catch problems on their native GOOS/GOARCH during regular development.
  • Make sure misc-compile* trybots have complete GOOS/GOARCH coverage.
  • Make those trybots also run vet for their GOOS/GOARCH.
    This will help keep detecting build breakages, which is a side effect of the current vetall builder.
  • Retire the vetall builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions