go test -work should do it. On Saturday, 18 June 2016 12:02:03 UTC+10, Hiroaki Nakamura wrote: > > Hi, > > Here are commands I used to set up gopkg.in/vmihailenco/msgpack.v2 > > go get -u gopkg.in/vmihailenco/msgpack.v2 > cd $GOPATH/src/gopkg.in/vmihailenco/msgpack.v2 > go get -u github.com/ugorji/go-msgpack > go get -u github.com/ugorji/go/codec > go get -u gopkg.in/check.v1 > > > And I tried to run tests and got the following errors. > > $ go test -v > # testmain > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:112: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:114: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:116: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:118: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:120: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:122: > too many values in struct initializer > /tmp/go-build808637166/ > gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go:124: > too many values in struct initializer > FAIL gopkg.in/vmihailenco/msgpack.v2 [build failed] > > > I tried to look into the > /tmp/go-build808637166/gopkg.in/vmihailenco/msgpack.v2/_test/_testmain.go > but the directory /tmp/go-build808637166 didn't exist. > > $ ls /tmp/go-build808637166 > ls: cannot access '/tmp/go-build808637166': No such file or directory > > > For the record, here are the go version and the commit hash for > gopkg.in/vmihailenco/msgpack.v2 > > $ go version > go version go1.7beta2 linux/amd64 > > $ git -C $GOPATH/src/gopkg.in/vmihailenco/msgpack.v2 rev-parse HEAD > 6915de5f21af6f5bcd2517da00d99c5131bb1da7 > > Is there a way to keep the temporary directory? I lookup the output of > "go test -h" but I couldn't find any. > > Regards, > Hiroaki >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.