mattn / goveralls

MIT License
789 stars 140 forks source link

Travis CI failing to find goveralls on latest go version #207

Open saheljalal opened 3 years ago

saheljalal commented 3 years ago

Travis CI is failing with the tip for go and passes with the same config using 1.13.x. It shows that it can't find the goveralls command.

The env:

go version devel go1.18-3bbc82371e Sat Oct 2 17:29:46 2021 +0000 linux/amd64
$ export GOPATH="/home/travis/gopath"
$ export PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.3/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin"
$ export GO111MODULE="on"
$ go version
go version devel go1.18-3bbc82371e Sat Oct 2 17:29:46 2021 +0000 linux/amd64
$ go get golang.org/x/tools/cmd/cover
$ go get github.com/mattn/goveralls

The error:

$ goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
No command 'goveralls' found, did you mean:
 Command 'coveralls' from package 'ruby-coveralls' (universe)
goveralls: command not found
The command "goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN" exited with 127.
brianV commented 2 years ago

I can confirm that this happens on CircleCI as well when running Go 1.18. This does not occur when I run it under Go 1.17.