v4.8.3 can't fetch terragrunt releases
Describe the bug tenv is not able to parse JSON with Terrgrunt releases
$ tenv Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases unexpected value returned by API
To Reproduce Steps to reproduce the behavior:
- Run 'tenv'
- Choose 'terragrunt'
- Error occurs
Expected behavior I should be able to choose Terragrunt version to install.
Screenshots
Environment (please complete the following information):
- OS: Ubuntu
- freshly installed tenv in version 4.8.3
Additional context
It's similar to https://github.com/tofuutils/tenv/issues/508. Please, try to use ad-hoc solution from that issue, until we won't fix it
The current workaround linked in #508 is to use version constraint, like so:
$ tenv tg install "~>0.93"
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Found compatible version remotely : 0.93.10
Installing Terragrunt 0.93.10
Fetching release information from https://api.github.com/repos/gruntwork-io/terragrunt/releases/tags/v0.93.10
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.93.10/terragrunt_linux_amd64
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.93.10/SHA256SUMS
Installation of Terragrunt 0.93.10 successful
$ terragrunt --version
terragrunt version v0.93.10
$ tenv --version
tenv version v4.8.3
I'm afraid above workaround doesn't work anymore
$ tenv tg install "~>0.93"
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Error: unexpected value returned by API
$ tenv --version
tenv version v4.8.3
@pgleska can you please try to set env variable TENV_GITHUB_TOKEN? Do you also use the Ubuntu operating system?
Hi folks, Can you try to use release v4.9.0, please?
@kvendingoldo You've done it, thank you!
$ terragrunt --version
terragrunt version v0.93.10
$ tenv --version
tenv version v4.8.3
#
$ curl -L -o tenv_v4.9.0_amd64.deb https://github.com/tofuutils/tenv/releases/download/v4.9.0/tenv_v4.9.0_amd64.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10.3M 100 10.3M 0 0 5937k 0 0:00:01 0:00:01 --:--:-- 11.4M
$ sudo dpkg -i tenv_v4.9.0_amd64.deb
(Reading database ... 49992 files and directories currently installed.)
Preparing to unpack tenv_v4.9.0_amd64.deb ...
Unpacking tenv (4.9.0) over (4.8.3) ...
Setting up tenv (4.9.0) ...
$ rm tenv_v4.9.0_amd64.deb
$ tenv tg install latest-stable
Fetching all releases information from https://api.github.com/repos/gruntwork-io/terragrunt/releases
Found compatible version remotely : 0.93.12
Installing Terragrunt 0.93.12
Fetching release information from https://api.github.com/repos/gruntwork-io/terragrunt/releases/tags/v0.93.12
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.93.12/terragrunt_linux_amd64
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.93.12/SHA256SUMS
Installation of Terragrunt 0.93.12 successful
#
$ terragrunt --version
terragrunt version v0.93.12
$ tenv --version
tenv version v4.9.0
Super, thanks for checking!