You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/07 22:09:03 UTC
[GitHub] pritidesai opened a new issue #718: Go fmt - please produce the corrupted list of files
pritidesai opened a new issue #718: Go fmt - please produce the corrupted list of files
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/718
Recently, we added a check on go files format as part of travis build. Its very annoying to see travis failing without any specifics, it just returns that your build is stopped because gofmt exited with 1. Please add details on which all go files are causing this failure and not following go fmt standards.
```
$ gimme version
v1.3.0
$ go version
go version go1.8 linux/amd64
go.env
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/travis/gopath"
GORACE=""
GOROOT="/home/travis/.gimme/versions/go1.8.linux.amd64"
GOTOOLDIR="/home/travis/.gimme/versions/go1.8.linux.amd64/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build934499651=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
before_install
0.48s$ ./tools/travis/cloneutils.sh
+++dirname ./tools/travis/cloneutils.sh
++cd ./tools/travis
++pwd
+SCRIPTDIR=/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/tools/travis
+HOMEDIR=/home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/tools/travis/../../../
+cd /home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/tools/travis/../../../
+git clone https://github.com/apache/incubator-openwhisk-utilities.git
Cloning into 'incubator-openwhisk-utilities'...
remote: Counting objects: 136, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 136 (delta 0), reused 1 (delta 0), pack-reused 131
Receiving objects: 100% (136/136), 30.64 KiB | 7.66 MiB/s, done.
Resolving deltas: 100% (76/76), done.
install.1
0.00s$ export DEPLOY_BUILD_READY=false
install.2
3.07s$ go get -u github.com/golang/lint/golint
install.3
1.90s$ go get -u github.com/stretchr/testify
install.4
2.12s$ go get -u github.com/tools/godep
before_script.1
0.01s$ GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
0.10s$ 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.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services