apache / openwhisk-client-go

Go client library for the Apache OpenWhisk platform
https://openwhisk.apache.org/
Apache License 2.0
35 stars 44 forks source link

Go format source code #60

Closed dubee closed 6 years ago

dubee commented 6 years ago

First commit fails Travis if files aren't formatted.

0.00s$ cd $TRAVIS_BUILD_DIR
0.01s$ GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
0.05s$ test -z "$(gofmt -s -l $(echo $GO_FILES))"
The command "test -z "$(gofmt -s -l $(echo $GO_FILES))"" failed and exited with 1 during .
Your build has been stopped.
mdeuser commented 6 years ago

@dubeejw - can you provide a bit more information on the root cause of this issue? is there something in the travis script expecting gofmt formatted files? if i understand the changes correctly, it appears that tabs were introduced into the source code, which imho is to be avoided.