-
Notifications
You must be signed in to change notification settings - Fork 294
go vet fails during make test #864
Comments
Forgot to mention that I also tried with latest go 1.5 and 1.4 but it led to the same error I also tried to change some of the import statements by changing |
Thanks for reporting this. We've seen this issue before, but it seems to vary from environment to environment. For instance, our Travis-CI tests have yet to report these errors on any Golang version we've tested (Go 1.4.x in the past, Go 1.5.3 and Go 1.6.1 currently), yet we can produce these errors on a variety of other platforms. This error is stemming from a package we import into the project that seems to be using unkeyed fields. We'll investigate if a newer version of this pkg exists with this fix in place, or possibly look to reimplement this functionality in a different way that will allow go vet to pass. |
Fix #864: Disable running go vet until consistent output can be achieved
We are disabling running of |
On Ubuntu 14.04.4 amd64 minimal netboot ISO installation
Environment
GOPATH=/home/user/WKS/snap-build
GOROOT=/home/user/GO/go-1.6.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/GO/go-1.6.1/bin:/home/user/WKS/snap-build/bin
Got go binary archive from official web site and extracted it
$ mkdir -p ~/GO
$ cd ~/GO
$ wget https://storage.googleapis.com/golang/go1.6.1.linux-amd64.tar.gz
$ tar zxf go1.6.1.linux-amd64.tar.gz
$ mv go go-1.6.1
$ type go
go is hashed (/home/user/GO/go-1.6.1/bin/go)
$ go version
go version go1.6.1 linux/amd64
Ran the following commands:
$ go get github.com/intelsdi-x/snap
$ go get github.com/tools/godep
$ make
$ make test
export SNAP_PATH=
pwd
/build; bash -c "./scripts/test.sh"Getting GoConvey if not found
Getting goimports if not found
Getting cover if not found
gofmt
goimports
go vet
control/config.go:82: github.com/vrischmann/jsonutil.Duration composite literal uses unkeyed fields
control/control_test.go:1013: github.com/vrischmann/jsonutil.Duration composite literal uses unkeyed fields
exit status 1
snapd.go:617: github.com/vrischmann/jsonutil.Duration composite literal uses unkeyed fields
exit status 1
make: *** [test] Error 1
Latest commit in /home/user/WKS/snap-build/src/github.com/intelsdi-x/snap master branch is:
commit 388e91d
Merge: 8f2a67a 2d02134
Author: Matt Brender mjbrender@gmail.com
Date: Tue Apr 19 08:29:05 2016 -0700
The text was updated successfully, but these errors were encountered: