Problem
Current main is not gofmt-clean.
Reproduced on 1d480ded52ab1bda1aea3d03a452ed901325344d:
gofmt -l $(git ls-files '*.go')
Output:
pkg/envinfo/cgroup_linux.go
pkg/envinfo/cgroup_linux_test.go
pkg/envinfo/cgroup_other.go
pkg/iometrics/tracker.go
go test ./... passes, so this is currently a formatting hygiene issue rather than a functional test failure. It can still create noisy local diffs because make test runs go fmt ./... before tests.
Expected behavior
gofmt -l $(git ls-files '*.go') should produce no output on main.
Problem
Current
mainis not gofmt-clean.Reproduced on
1d480ded52ab1bda1aea3d03a452ed901325344d:gofmt -l $(git ls-files '*.go')Output:
go test ./...passes, so this is currently a formatting hygiene issue rather than a functional test failure. It can still create noisy local diffs becausemake testrunsgo fmt ./...before tests.Expected behavior
gofmt -l $(git ls-files '*.go')should produce no output onmain.