diff --git a/.testdata/binary-darwin b/.testdata/binary-darwin index 8c64268..2b7aa11 100644 --- a/.testdata/binary-darwin +++ b/.testdata/binary-darwin @@ -5,83 +5,127 @@ # for runtest invocation. # -1.9rc2 -1.9rc1 -1.9beta2 -1.9beta1 -1.9.5 -1.9.4 -1.9.3 -1.9.2rc2 -1.9.2 -1.9.1 -1.9 -1.8rc3 -1.8rc2 -1.8rc1 -1.8beta2 -1.8beta1 -1.8.7 -1.8.6 -1.8.5rc4 -1.8.5 -1.8.4 -1.8.3 -1.8.2 -1.8.1 -1.8 -1.7rc6 -1.7rc5 -1.7rc4 -1.7rc3 -1.7rc2 -1.7rc1 -1.7beta2 -1.7beta1 -1.7.6 -1.7.5 -1.7.4 -1.7.3 -1.7.2 -1.7.1 -1.7 -1.6rc2 -1.6rc1 -1.6beta2 -1.6beta1 -1.6.4 -1.6.3 -1.6.2 -1.6.1 -1.6 -1.5rc1 -1.5beta3 -1.5beta2 -1.5beta1 -1.5.4 -1.5.3 -1.5.2 -1.5.1 -1.5 -1.4rc2 -1.4rc1 -1.4beta1 -1.4.3 -1.4.2 -1.4.1 -1.4 -1.3rc2 -1.3rc1 -1.3beta2 -1.3beta1 -1.3.3 -1.3.2 -1.3.1 -1.3 -1.2.2 +1.16.9 +1.16.8 +1.16.7 +1.16.6 +1.16.5 +1.16.4 +1.16.3 +1.16.2 +1.16.15 +1.16.14 +1.16.13 +1.16.12 +1.16.11 +1.16.10 +1.16.1 +1.15rc2 +1.15rc1 +1.15beta1 +1.15.9 +1.15.8 +1.15.7 +1.15.6 +1.15.5 +1.15.4 +1.15.3 +1.15.2 +1.15.15 +1.15.14 +1.15.13 +1.15.12 +1.15.11 +1.15.10 +1.15.1 +1.15 +1.14rc1 +1.14beta1 +1.14.9 +1.14.8 +1.14.7 +1.14.6 +1.14.5 +1.14.4 +1.14.3 +1.14.2 +1.14.15 +1.14.14 +1.14.13 +1.14.12 +1.14.11 +1.14.10 +1.14.1 +1.14 +1.13rc2 +1.13rc1 +1.13beta1 +1.13.9 +1.13.8 +1.13.7 +1.13.6 +1.13.5 +1.13.4 +1.13.3 +1.13.2 +1.13.15 +1.13.14 +1.13.13 +1.13.12 +1.13.11 +1.13.10 +1.13.1 +1.13 +1.12rc1 +1.12beta2 +1.12beta1 +1.12.9 +1.12.8 +1.12.7 +1.12.6 +1.12.5 +1.12.4 +1.12.3 +1.12.2 +1.12.17 +1.12.16 +1.12.15 +1.12.14 +1.12.13 +1.12.12 +1.12.11 +1.12.10 +1.12.1 +1.12 +1.11rc2 +1.11rc1 +1.11beta3 +1.11beta2 +1.11beta1 +1.11.9 +1.11.8 +1.11.7 +1.11.6 +1.11.5 +1.11.4 +1.11.3 +1.11.2 +1.11.13 +1.11.12 +1.11.11 +1.11.10 +1.11.1 +1.11 1.10rc2 1.10rc1 1.10beta2 1.10beta1 +1.10.8 +1.10.7 +1.10.6 +1.10.5 +1.10.4 +1.10.3 +1.10.2 1.10.1 1.10 diff --git a/.testdata/binary-linux b/.testdata/binary-linux index 8c64268..03c4b25 100644 --- a/.testdata/binary-linux +++ b/.testdata/binary-linux @@ -5,83 +5,126 @@ # for runtest invocation. # -1.9rc2 -1.9rc1 -1.9beta2 -1.9beta1 -1.9.5 -1.9.4 -1.9.3 -1.9.2rc2 -1.9.2 -1.9.1 -1.9 -1.8rc3 -1.8rc2 -1.8rc1 -1.8beta2 -1.8beta1 -1.8.7 -1.8.6 -1.8.5rc4 -1.8.5 -1.8.4 -1.8.3 -1.8.2 -1.8.1 -1.8 -1.7rc6 -1.7rc5 -1.7rc4 -1.7rc3 -1.7rc2 -1.7rc1 -1.7beta2 -1.7beta1 -1.7.6 -1.7.5 -1.7.4 -1.7.3 -1.7.2 -1.7.1 -1.7 -1.6rc2 -1.6rc1 -1.6beta2 -1.6beta1 -1.6.4 -1.6.3 -1.6.2 -1.6.1 -1.6 -1.5rc1 -1.5beta3 -1.5beta2 -1.5beta1 -1.5.4 -1.5.3 -1.5.2 -1.5.1 -1.5 -1.4rc2 -1.4rc1 -1.4beta1 -1.4.3 -1.4.2 -1.4.1 -1.4 -1.3rc2 -1.3rc1 -1.3beta2 -1.3beta1 -1.3.3 -1.3.2 -1.3.1 -1.3 -1.2.2 +1.16.8 +1.16.7 +1.16.6 +1.16.5 +1.16.4 +1.16.3 +1.16.2 +1.16.15 +1.16.14 +1.16.13 +1.16.12 +1.16.11 +1.16.10 +1.16.1 +1.15rc2 +1.15rc1 +1.15beta1 +1.15.9 +1.15.8 +1.15.7 +1.15.6 +1.15.5 +1.15.4 +1.15.3 +1.15.2 +1.15.15 +1.15.14 +1.15.13 +1.15.12 +1.15.11 +1.15.10 +1.15.1 +1.15 +1.14rc1 +1.14beta1 +1.14.9 +1.14.8 +1.14.7 +1.14.6 +1.14.5 +1.14.4 +1.14.3 +1.14.2 +1.14.15 +1.14.14 +1.14.13 +1.14.12 +1.14.11 +1.14.10 +1.14.1 +1.14 +1.13rc2 +1.13rc1 +1.13beta1 +1.13.9 +1.13.8 +1.13.7 +1.13.6 +1.13.5 +1.13.4 +1.13.3 +1.13.2 +1.13.15 +1.13.14 +1.13.13 +1.13.12 +1.13.11 +1.13.10 +1.13.1 +1.13 +1.12rc1 +1.12beta2 +1.12beta1 +1.12.9 +1.12.8 +1.12.7 +1.12.6 +1.12.5 +1.12.4 +1.12.3 +1.12.2 +1.12.17 +1.12.16 +1.12.15 +1.12.14 +1.12.13 +1.12.12 +1.12.11 +1.12.10 +1.12.1 +1.12 +1.11rc2 +1.11rc1 +1.11beta3 +1.11beta2 +1.11beta1 +1.11.9 +1.11.8 +1.11.7 +1.11.6 +1.11.5 +1.11.4 +1.11.3 +1.11.2 +1.11.13 +1.11.12 +1.11.11 +1.11.10 +1.11.1 +1.11 1.10rc2 1.10rc1 1.10beta2 1.10beta1 +1.10.8 +1.10.7 +1.10.6 +1.10.5 +1.10.4 +1.10.3 +1.10.2 1.10.1 1.10 diff --git a/.testdata/sample-binary-darwin b/.testdata/sample-binary-darwin index 5d7a53d..2870916 100644 --- a/.testdata/sample-binary-darwin +++ b/.testdata/sample-binary-darwin @@ -9,12 +9,10 @@ # * the last formal release in all previous series # -1.10.1 -1.9.5 -1.8.7 -1.7.6 -1.6.4 -1.5.4 -1.4.3 -1.3.3 -1.2.2 +1.16.15 +1.15.15 +1.14.15 +1.13.15 +1.12.17 +1.11.13 +1.10.8 diff --git a/.testdata/sample-binary-linux b/.testdata/sample-binary-linux index 5d7a53d..2870916 100644 --- a/.testdata/sample-binary-linux +++ b/.testdata/sample-binary-linux @@ -9,12 +9,10 @@ # * the last formal release in all previous series # -1.10.1 -1.9.5 -1.8.7 -1.7.6 -1.6.4 -1.5.4 -1.4.3 -1.3.3 -1.2.2 +1.16.15 +1.15.15 +1.14.15 +1.13.15 +1.12.17 +1.11.13 +1.10.8 diff --git a/.travis.yml b/.travis.yml index 79593c7..a13f365 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ env: global: - GIMME_TMP="${TRAVIS_BUILD_DIR}/tmp" - UNAME="$(uname | tr '[:upper:]' '[:lower:]')" - - GO_BOOTSTRAP_VERSION=1.8.3 + - GO_BOOTSTRAP_VERSION=1.20.6 - GOPATH="${HOME}/gopath" - PATH="${HOME}/bin:${PATH}" - SHELLCHECK_URL="https://www.googleapis.com/download/storage/v1/b/shellcheck/o/shellcheck-v0.4.7.linux.x86_64.tar.xz?alt=media" diff --git a/gimme b/gimme index 75e618d..ccaa1d8 100755 --- a/gimme +++ b/gimme @@ -285,7 +285,7 @@ _extract() { # _setup_bootstrap _setup_bootstrap() { - local versions=("1.18" "1.17" "1.16" "1.15" "1.14" "1.13" "1.12" "1.11" "1.10" "1.9" "1.8" "1.7" "1.6" "1.5" "1.4") + local versions=("1.20" "1.19" "1.18" "1.17" "1.16" "1.15" "1.14" "1.13" "1.12" "1.11" "1.10" "1.9" "1.8" "1.7" "1.6" "1.5" "1.4") # try existing for v in "${versions[@]}"; do @@ -662,10 +662,10 @@ _get_old_stable() { _update_stable() { local stable="${1}" - local url="https://golang.org/VERSION?m=text" + local url="https://go.dev/VERSION?m=text" _do_curl "${url}" "${stable}" - sed -i.old -e 's/^go\(.*\)/\1/' "${stable}" + sed -i.old -e '1s/^go\([0-9.]*\)/\1/' -e '2,$d' "${stable}" rm -f "${stable}.old" }