build github.com/mattn/goveralls: cannot load golang.org/x/tools/cover: disallowed version string ""
hsluoyz opened this issue · 4 comments
hsluoyz commented
After today's commit, I found the coveralls is broken. I didn't change anything in Travis.
https://travis-ci.org/casbin/casbin/builds/546016711
$ go get github.com/mattn/goveralls
go: finding github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible
go: finding github.com/mattn/goveralls v0.0.2
go: downloading github.com/mattn/goveralls v0.0.2
go: extracting github.com/mattn/goveralls v0.0.2
go: finding golang.org/x/tools latest
go: finding golang.org/x/tools
build github.com/mattn/goveralls: cannot load golang.org/x/tools/cover: disallowed version string ""
The command "go get github.com/mattn/goveralls" failed and exited with 1 during .
Your build has been stopped.
Can anyone help with it? Thanks.
LLKennedy commented
I'm also encountering this issue:
https://travis-ci.org/LLKennedy/imagetemplate/jobs/546263797
$ go get github.com/mattn/goveralls
go: finding github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: finding github.com/LLKennedy/gosysfonts v1.1.0
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/disintegration/imaging v1.6.0
go: finding golang.org/x/image v0.0.0-20190501045829-6d32002ffd75
go: finding github.com/boombuler/barcode v1.0.0
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/davecgh/go-spew v1.1.0
go: finding golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81
go: finding golang.org/x/text v0.3.0
go: finding github.com/mattn/goveralls v0.0.2
go: downloading github.com/mattn/goveralls v0.0.2
go: extracting github.com/mattn/goveralls v0.0.2
go: finding golang.org/x/tools latest
go: finding golang.org/x/tools
build github.com/mattn/goveralls: cannot load golang.org/x/tools/cover: disallowed version string ""
The command "go get github.com/mattn/goveralls" failed and exited with 1 during .
hsluoyz commented
Hi @LLKennedy , I found this is because I'm using go tip. After using Go 1.12, it is fixed: casbin/casbin@0d99fc2
hsluoyz commented
I think it's more of a Golang issue than goveralls issue, so I close this issue for now.
LLKennedy commented
I'm using Go master as well, I'll see if changing to go 1.12 also fixes it for me. If so, I agree it's not strictly a goveralls issue.