Skip to content

gogo-protobuf go version compability test

gogo protobuf version: v1.3.2

go 1.16

rrcheck ./test/...
go get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
go vet ./...
# github.com/gogo/protobuf/test/stdtypes
test/stdtypes/concurrency_test.go:26:5: call to (*T).Fatal from a non-test goroutine
make: *** [Makefile:153: vet] Error 2

I fix it, and run again. No error now.

go 1.17.2

ok  	github.com/gogo/protobuf/test/sizeunderscore	0.027s
--- FAIL: TestStdTypesGoString (0.00s)
    stdtypespb_test.go:611: 1:39: expected operand, found '<' (and 1 more errors)
FAIL
FAIL	github.com/gogo/protobuf/test/stdtypes	0.018s
ok  	github.com/gogo/protobuf/test/tags	0.029s
?   	github.co

But when i just run make again , just show the go vet error which showed in go1.16. Fix it and run again, everything seems fine.

?   	github.com/gogo/protobuf/vanity/test/faster	[no test files]
?   	github.com/gogo/protobuf/vanity/test/slick	[no test files]
?   	github.com/gogo/protobuf/version	[no test files]
(cd test/stdtypes && make test)
make[1]: Entering directory '/home/daomin/.gvm/pkgsets/go1.17.2/global/src/github.com/gogo/protobuf/test/stdtypes'
go test -race -run=TestConcurrentTextMarshal .
ok  	github.com/gogo/protobuf/test/stdtypes	0.019s
make[1]: Leaving directory '/home/daomin/.gvm/pkgsets/go1.17.2/global/src/github.com/gogo/protobuf/test/stdtypes'
go get github.com/kisielk/errcheck
errcheck ./test/...
go get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
go vet ./...
go vet -vettool=/home/daomin/.gvm/pkgsets/go1.17.2/global/bin/shadow ./...
Published ingolang

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *