-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: added gofmt to action #660
Conversation
Oops. It turns out that some files are not formatted via ❯ gofmt -l .
cmd/definitions/bindata/bindata.go
cmd/definitions/parse.go
cmd/definitions/tools.go
cmd/definitions/type.go
❯ go fmt -n ./...
/usr/local/go/bin/gofmt -l -w pkg/credential/credential.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/storage.go
/usr/local/go/bin/gofmt -l -w pkg/credential/error.go
/usr/local/go/bin/gofmt -l -w pkg/fswrap/doc.go
/usr/local/go/bin/gofmt -l -w pkg/fswrap/fileinfo.go
/usr/local/go/bin/gofmt -l -w pkg/fswrap/httpfs.go
/usr/local/go/bin/gofmt -l -w pkg/fswrap/iofs.go
/usr/local/go/bin/gofmt -l -w pairs/generated.go
/usr/local/go/bin/gofmt -l -w pkg/headers/range.go
/usr/local/go/bin/gofmt -l -w pkg/httpclient/client.go
/usr/local/go/bin/gofmt -l -w pkg/httpclient/conn.go
/usr/local/go/bin/gofmt -l -w pkg/httpclient/dialer.go
/usr/local/go/bin/gofmt -l -w pairs/error.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/generated.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/mock_test.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/pipe.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/interface.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/doc.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/pipe_test.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/reader.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/doc.go
/usr/local/go/bin/gofmt -l -w pairs/doc.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/writer_test.go
/usr/local/go/bin/gofmt -l -w pkg/randbytes/randbytes.go
/usr/local/go/bin/gofmt -l -w doc.go
/usr/local/go/bin/gofmt -l -w services/error.go
/usr/local/go/bin/gofmt -l -w services/new.go
/usr/local/go/bin/gofmt -l -w types/doc.go
/usr/local/go/bin/gofmt -l -w types/error.go
/usr/local/go/bin/gofmt -l -w types/info.generated.go
/usr/local/go/bin/gofmt -l -w types/info.go
/usr/local/go/bin/gofmt -l -w types/interceptor.go
/usr/local/go/bin/gofmt -l -w types/iterator.generated.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/pipe_bench_test.go
/usr/local/go/bin/gofmt -l -w types/object.generated.go
/usr/local/go/bin/gofmt -l -w types/object.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/connstr_test.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/service.go
/usr/local/go/bin/gofmt -l -w types/pair.go
/usr/local/go/bin/gofmt -l -w types/object_test.go
/usr/local/go/bin/gofmt -l -w types/iterator.go
/usr/local/go/bin/gofmt -l -w pkg/headers/headers.go
/usr/local/go/bin/gofmt -l -w pkg/credential/credential_test.go
/usr/local/go/bin/gofmt -l -w pkg/randbytes/randbytes_test.go
/usr/local/go/bin/gofmt -l -w cmd/definitions/tests/utils.go
/usr/local/go/bin/gofmt -l -w docs/rfcs/1/main_test.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/writer.go
/usr/local/go/bin/gofmt -l -w types/operation.go
/usr/local/go/bin/gofmt -l -w pkg/iowrap/reader_test.go
/usr/local/go/bin/gofmt -l -w types/operation.generated.go Why only
|
|
I think it's affected by the package's tag. (definitions are under Maybe use |
How about moving the format check in a separate action called |
I was thinking about the same. Should I go on and create a new action for It would make the workflow much more cleaner and easier to maintain. |
So nice! I have updated #563 and please take a look. |
I will create a pr to fix the code format. |
Can you merge the master branch so that we can get the CI passed? |
Codecov Report
@@ Coverage Diff @@
## master #660 +/- ##
==========================================
+ Coverage 17.57% 18.09% +0.51%
==========================================
Files 19 19
Lines 768 746 -22
==========================================
Hits 135 135
+ Misses 626 604 -22
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks for your contribution! 😆 |
Related #563.
Added
gofmt
check to make sure every PR has been formatted.