go: cmd/vet/all: build failures affecting misc-vet-vetall
What version of Go are you using (go version
)?
go version devel +0fe1986a72 Thu Mar 21 01:35:21 2019 +0000 linux/arm64
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (go env
)?
GOARCH=“arm64” GOBIN=“” GOCACHE=“/home//.cache/go-build" GOEXE=“” GOFLAGS=“” GOHOSTARCH=“arm64” GOHOSTOS=“linux” GOOS=“linux” GOPATH="/home//go” GOPROXY=“” GORACE=“” GOROOT=“/home//go-master” GOTMPDIR=“” GOTOOLDIR=“/home//go-master/pkg/tool/linux_arm64” GCCGO=“gccgo” CC=“gcc” CXX=“g++” CGO_ENABLED=“1” GOMOD=“/home//go-master/src/go.mod” CGO_CFLAGS=“-g -O2” CGO_CPPFLAGS=“” CGO_CXXFLAGS=“-g -O2” CGO_FFLAGS=“-g -O2” CGO_LDFLAGS=“-g -O2” PKG_CONFIG=“pkg-config” GOGCCFLAGS=“-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build580593418=/tmp/go-build -gno-record-gcc-switches”
The problem also occurs on amd64.
What did you do?
GO_BUILDER_NAME=*-vetall …/bin/go tool dist test -run arm64$
What did you expect to see?
Testing packages.
ok cmd/internal/obj/arm64 0.056s
ALL TESTS PASSED (some were excluded)
What did you see instead?
cmd/vet/all
go run main.go -p darwin/arm64 encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error exit status 1 2019/03/21 06:14:58 Failed: exit status 1 go run main.go -p android/arm64 encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error exit status 1 2019/03/21 06:14:59 Failed: exit status 1 go run main.go -p linux/arm64 encoding/xml/marshal.go:104: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read.go:175: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/marshal_test.go:317: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error encoding/xml/read_test.go:630: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error encoding/xml/xml_test.go:887: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error exit status 1 2019/03/21 06:14:59 Failed: exit status 1 2019/03/21 06:15:00 FAILED
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 25 (19 by maintainers)
Commits related to this issue
- go/analysis/passes/tests: break out of loop when we find a method Updates golang/go#30971 Change-Id: I7c9250c46fede553689cdc5007b6f330a006b867 Reviewed-on: https://go-review.googlesource.com/c/tools... — committed to golang/tools by ianlancetaylor 5 years ago
- cmd: update go.mod versions for vetall bug Updates golang/go#30971 Updates golang/go#31040 Change-Id: I305fbddb6f79cbe3d7e29225841309ab00b1e7dd Reviewed-on: https://go-review.googlesource.com/c/go/+... — committed to golang/go by bradfitz 5 years ago
- cmd/coordinator: remove special cases for misc-vet-vetall See plan at https://github.com/golang/go/issues/30971#issuecomment-476383123 Updates golang/go#31040 Change-Id: I160d671670094c3ab4f9d7ba82... — committed to golang/build by bradfitz 5 years ago
I’m going to give myself 10 minutes to write a test.
The cause is a bug in https://golang.org/cl/168404. I added a comment to the CL. CC @matloob
All trybot runs are failing now because of this, so I’m pinning the issue to ensure others find it.