[ci] Use `gofmt` to avoid `go fmt` downloading dependencies
`go fmt` doesn't seem to respect `-mod=vendor` https://github.com/golang/go/issues/27841 Instead try using `gofmt` which doesn't trigger downloading dependencies in the first place. However, `gofmt` affects files under `vendor/`, so we reset that before checking for changes.
Showing
想要评论请 注册 或 登录