Can't specify "oldstable" as go_version in travis.yml

Hi, I’m trying to use “oldstable” and “stable” as go versions in .travis.yml, as described in gimme documentation (see GitHub - travis-ci/gimme: Install go, yay!). My .travis.yml starts like this:

language: go
go:
  - oldstable
  - stable
  - tip

So, it works with “stable”, but gives the following when I try to use “oldstable”:

gimme version
v1.5.3

gimme: version specifier ‘oldstable’ unknown
error: GIMME_GO_VERSION not recognized as valid
got: oldstable
Failed to run gimme
The command “travis_setup_go” failed and exited with 86 during .

I am trying gimme 1.5.3 (presumably the same version) locally and it works fine:

$ GIMME_GO_VERSION=oldstable gimme -r
1.13.9

$ GIMME_GO_VERSION=stable gimme -r
1.14.1

It was reported by someone else back in September 2019 to "oldstable" does not work on Travis · Issue #179 · travis-ci/gimme · GitHub but it’s still not working as of today.

From where I stand, it looks like:

  • gimme own version reporting is not entirely correct
  • travis uses old(er) gimme version that can’t recognize “oldstable”

OK, gimme 1.5.3 was released in 2018 and a version from git HEAD also shows 1.5.3, that explains why the version looks the same but the features are different.

Filed https://github.com/travis-ci/gimme/issues/185

Well, gimme 1.5.4 was released so “stable” and “oldstable” should work now.