For starters, the name is Check formatting and it does not check formatting. It checks imports.
But: The tool itself cannot cope with the golang.org/x/tools package: if you add the checksum it says via go mod download it then complains you need to go mod tidy, which then removes that checksum.
go: downloading golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a
go: updates to go.mod needed; to update it:
go mod tidy
vs
missing go.sum entry for module providing package golang.org/x/tools/cmd/goimports; to add:
go mod download golang.org/x/tools
For starters, the name is
Check formatting
and it does not check formatting. It checks imports.But: The tool itself cannot cope with the
golang.org/x/tools
package: if you add the checksum it says viago mod download
it then complains you need togo mod tidy
, which then removes that checksum.vs