tenv icon indicating copy to clipboard operation
tenv copied to clipboard

v4.8.3 can't fetch terragrunt releases

Open pgleska opened this issue 1 month ago • 2 comments

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:

  1. Run 'tenv'
  2. Choose 'terragrunt'
  3. 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

pgleska avatar Nov 20 '25 17:11 pgleska

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

kvendingoldo avatar Nov 21 '25 07:11 kvendingoldo

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

rdhar avatar Nov 22 '25 15:11 rdhar

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 avatar Nov 30 '25 15:11 pgleska

@pgleska can you please try to set env variable TENV_GITHUB_TOKEN? Do you also use the Ubuntu operating system?

Nmishin avatar Nov 30 '25 21:11 Nmishin

Hi folks, Can you try to use release v4.9.0, please?

kvendingoldo avatar Dec 02 '25 08:12 kvendingoldo

@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

rdhar avatar Dec 02 '25 13:12 rdhar

Super, thanks for checking!

Nmishin avatar Dec 02 '25 14:12 Nmishin