We are reading the go version from a file in our repository and load it into an environment variable. About 3 days ago this stopped working. Looking at Compatibility with GOPATH and Modules (go.mod present) and https://github.com/travis-ci/travis-build/pull/1636 by @meatballhat this might be related, especially because of the timing of the issue. I didn’t dig into the PR but there seem to be quite some changes to GO_VERSION.
For now we switched to hardcode the version and things keep working. Here is the PR to reintroduce usage of the environment variable: https://github.com/elastic/beats/pull/10589 I played around with some different environment vars but no luck yet.
The error we get is:
Setting environment variables from .travis.yml $ export GOX_FLAGS="-arch amd64" $ export DOCKER_COMPOSE_VERSION=1.21.0 $ export GO_VERSION="$(cat .go-version)" $ export TRAVIS_MINIKUBE_VERSION=v0.25.2 $ export TARGETS="check" 23.14s$ travis_setup_go $GO_VERSION github.com/elastic/beats gimme: version specifier '$GO_VERSION' unknown error: GIMME_GO_VERSION not recognized as valid got: $GO_VERSION Failed to run gimme The command "travis_setup_go $GO_VERSION github.com/elastic/beats" failed and exited with 86 during .